Applies To
File.
Purpose
Closes a DIO file specified by the File board handle.
Syntax
DioFileClose (hFile, pnStatus)
Parameters
Name |
Type |
Comments |
hFile |
SHORT |
File board handle returned by the DioFileOpen function. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Comments
Closes the file specified by the File board handle returned by the function DioFileOpen.
Example
The following example opens and closes a DIO file:
SHORT nStatus, hFile;
CHAR szFilename[]=”newFile.dio”;
DioFileOpen (szFilename, 1, &hFile, &nStatus);
DioFileClose (hFile, &nStatus)
See Also
DioFileOpen, DioFileDeleteBoard, DioGetErrorString