Hey all,

I can write simple variables out to a file but the problem is I have more complex things to write out. (such as structs and 2D arrays)

For writing out a struct I tried this:

FILE * WRITE = fopen(fileName, "w+b");

fwrite(&charData, sizeof(struct charData),1, WRITE);
However, I get a weird error about "missing lvalues". What does it mean?