Well, hello.
I have a problem with reading data from binary files into arrays.
For example, let's say that we have d.bin file which contains
pairs of strings with max lenght of 32 chars and double values like this:
string12.334343
AS34.34
something3
where the string always takes up 32 bytes.
Basically, the binary file has a series of types record defined like this:
typedef struct{
char name[32];
double value;
}record;
The question is how would I fread the strings into one array and values into another so that
the namearray would contain (string AS something)
and the valuearray (12.334343 34.34 3) ??