txt files
-
I have two questions. First is, how can I read and write a text file? I've done this before with fstream, but that method doesn't seem to work at all with MFC. Second, is there a way I can easily intergrate these text files into the executable? If not, then they could just be kept in the same folder, but it would clean it up a lot if they were apart of it. If you have a problem with my spelling, just remember that's not my fault. I (as well as everyone else who learned to spell after 1976) blame it on Robert A. Kolpek for U.S. Patent 4,136,395.
-
I have two questions. First is, how can I read and write a text file? I've done this before with fstream, but that method doesn't seem to work at all with MFC. Second, is there a way I can easily intergrate these text files into the executable? If not, then they could just be kept in the same folder, but it would clean it up a lot if they were apart of it. If you have a problem with my spelling, just remember that's not my fault. I (as well as everyone else who learned to spell after 1976) blame it on Robert A. Kolpek for U.S. Patent 4,136,395.
fstream should work, but it's C. You should use iostreams to read and write text files. Plenty of tutorials on CP. You should be able to integrate text using resources, depending on how big they are. I've not done it tho. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder