M
Meenakshi Matai
I am trying to read data from a .dat file using fread.
This is how my syntax looks:
temp = fread(indata, sizeof(short int), 1, datafile);
I looked into the data file in Hex format and saw that everytime fread
finds the data "1A" it returns a non-zero value.
I tried with another .dat file and the same thing happens.
I went in and manually changed the contents of the .dat file.
Everywhere I found a "1A" I changed it to "1B" ("1C", "1D", "0D") and
it works just fine.
Anything but "1A" works fine.
Could you please suggest why this would be happening.
Thanks a lot in advance,
Meenakshi Matai.
This is how my syntax looks:
temp = fread(indata, sizeof(short int), 1, datafile);
I looked into the data file in Hex format and saw that everytime fread
finds the data "1A" it returns a non-zero value.
I tried with another .dat file and the same thing happens.
I went in and manually changed the contents of the .dat file.
Everywhere I found a "1A" I changed it to "1B" ("1C", "1D", "0D") and
it works just fine.
Anything but "1A" works fine.
Could you please suggest why this would be happening.
Thanks a lot in advance,
Meenakshi Matai.