Re: Open + Save in wxeuphoria
- Posted by Matt Lewis <matthewwalkerlewis at gmail.com> Apr 12, 2006
- 421 views
Jesse Adkins wrote: > > Hi, > > I'm trying to write a word processor in wxeuphoria and I can't get the Open, > nor Save command to work on it. I've been trying to go throught the wxIDE for > about a week now but I simply can't figure out how to do either one. > > Could someone please offer some help, or some advice as to how to do it? The opening and saving in wxIDE is fairly straightforward (and based on the stand-alone editor from Judith's IDE). Each line of text is stored as its own sequence. To read a file, the line is read in using gets(), and the newline character is stripped. To save, I just print each sequence to the file, adding the appropriate line ending. Have you tried writing and reading files? I'm not sure where you're getting stuck, so a little more information might help us to help you. Matt Lewis