File I/O problem

Pages: 12
char chapter[1]; // this only allocates space for 1 character, doesn't leave space for a null terminator so it can't be used/accessed as a cstring array.
When I write more into the file wouldn't I need a Array anyway?


Actually, I think you should set the game aside for now. Learn about classes and make yourself a FileIO class.
Topic archived. No new replies allowed.
Pages: 12