Dilema - Fwriting
I have one function that initializes array elements to 0, and write it to a file.
In a second function I overrite certain elements and then write it to file.
The problem is, the elements which I dont alter are written to file but as junk.
Is there anything I can do about this?
The array is part of a struct, so I fwrite the entire struct, and I believe it is putting junk in the elements I dont alter.
Thanks, Ill give it a try, what I was about to do was if the array element had someting in it, then I know its occupied, and do nothing, else I would have put a 0, which was initally done by my setup function.