I'm trying to read some records from a binary file.
The records are as such:
data[as specified by the length]
I used the binary file i/o function in conjunction with a structure for these 3 variables to no avail.
Its reading only junk values. any ideas as to how to implement this?
I'm thinking of using an int for type and long int for length [i'm not sure if it'll convert to int when it reads]. do i need to use an array for all 3 records??