cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
File I/O problem
Page 2
File I/O problem
Pages:
1
2
Jul 18, 2012 at 7:58pm UTC
Texan40
(645)
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.
Jul 18, 2012 at 9:55pm UTC
Lowest0ne
(1536)
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:
1
2