Hello, all,
I am trying to write data to a file that will be read by another, older program. The data to be written has the following structure:
typedef struct {
double dd;
int ii;
float array1[10];
unsigned char array2[59];
} STRUCT;
When in my program I step through the ReadFile function in debug mode, ReadFile gives me a bytes-read count of 112. But when I do the same in the older code, it gives me a bytes-read count of 111, which might explain why the older program cannot read my file correctly. The older code uses a SetFilePtr statement (SetFilePtr (file, 0, 0)) prior to the ReadFile, but when I do the same in my code, there's no change in the byte count. What might cause or account for such a discrepancy?
Thanks,
Slowpoke
Slowpoke
CLAD (believe it or not!), using LabVIEW 8.5
They don't call me "Slowpoke" for nothin'!