National Instruments 320682C Musical Toy Instrument User Manual


 
Utility Library Chapter 8
LabWindows/CVI Standard Libraries 8-26 © National Instruments Corporation
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 size of the file found by the most
recent call to GetFirstFile or GetNextFile is returned (Windows only).
Example
long size;
if (GetFileSize ("waveform.dat",&size) == 0)
FmtOut("The size of WAVEFORM.DAT is %i[b4]",size);
GetFileTime
int result = GetFileTime (char fileName[], int *hours, int *minutes, int *seconds);
Purpose
Gets the time of a file.
Parameters
Input
fileName
string File to get date.
Output
hours
integer Hours (0 to 23).
minutes
integer Minutes (0 to 59).
seconds
integer Number of 2-second increments
(0-29).
Return Value
result
integer Result of operation.