Note Windows SDK also contains a GetFileSize function. If you include windows.h and do not include utility.h, you will receive compile errors if you call the GetFileSize function.
Example
/* Get the size of WAVEFORM.DAT. */
long size;
if (GetFileSize ("WAVEFORM.DAT",&size) == 0)
FmtOut ("The size of WAVEFORM.DAT is %i[b4]",size);
Prototype
int GetFileSize (char File_Name[], long *File_Size);
Gets the size of a file, in bytes.
Note Windows SDK also contains a GetFileSize function. If you include windows.h and do not include utility.h, you will receive compile errors if you call the GetFileSize function.
Example
/* Get the size of WAVEFORM.DAT. */
long size;
if (GetFileSize ("WAVEFORM.DAT",&size) == 0)
FmtOut ("The size of WAVEFORM.DAT is %i[b4]",size);
Prototype
int GetFileSize (char File_Name[], long *File_Size);