National Instruments 320682C Musical Toy Instrument User Manual


 
Chapter 8 Utility Library
© National Instruments Corporation 8-25 LabWindows/CVI Standard Libraries
Return Codes
0 Success.
-1 File not found or directory in path not found.
-3 General I/O error occurred.
-4 Insufficient memory to complete operation.
-5 Invalid path (for example, c:filename in Windows).
-6 Access denied.
Parameter Discussion
fileName may be the empty string (""), in which case the date of the file found by the most
recent call to GetFirstFile or GetNextFile is returned (Windows only).
Example
/* get the date of WAVEFORM.DAT */
int month, day, year;
GetFileDate ("waveform.dat",&month,&day,&year);
GetFileSize
int result = GetFileSize (char fileName[], long *fileSize);
Purpose
Returns the size of a file.
Parameters
Input
fileName
string Name of file.
Output
fileSize
long Size of file in bytes.
Return Value
result
integer Result of operation.