Binary Read and Writes...
I'm forced to keep an array of 2000 elements on disk for later use..
My program uses this :
struct array //I do the struct to encapsulate -sort of anyway
{
char m_pCodes[1000];
}array;
Now in my program i write let's say 5 codes -at place [0]-1-2-3-4..
I know wanna save them on disk and close the program.
When I open the program i want to see the same codes(offcourse) and then afterwards append the array.. Say know i'll continue writing in element 5-6 and 7.
My program though writes the file... But when reopen -data's smashed !!!!
Please help me on this one.. Since i'm not a huge fan on Console programming -file access has never bin much of intereset... :)