View Single Post
zapS

JCF Member

Joined: Jan 2005

Posts: 84

zapS is doing well so far

May 24, 2007, 03:19 AM
zapS is offline
Reply With Quote
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