i did wrong when i read the file into a char pointer.
in the fread funtion the first parameter must be an adress you know,
and usually i want to read data and put them in int variables or similar types and then i have to write fread(&var,... and i forgot that in this case it was a pointer and i wrote "&" before. the result were just alot of -51  , quite a stupid thing to do  but that's the kind of small mistakes i often run into
|