file contains:
this is a sample text editor, it allowes the simple creation of text files and t
he appending to those text files.
there is but one way to use such a usless program. as practice and nothing more.
that is all, tab <tab> that is tab.
hello world
hello
end of file
inpute test then insert EOF to save
some text
^Z
Press any key to continue . . .
it reads the file the first time just fine.
then i input "some text" and it writes it just fine.
however when i reuse the "infile" stream it doesn't work.
idk why, i closed it and everything.
this bothers me cause similar code was in my book and it did the same thing, i just ignored it at the time. now i want to solve the problem.
thank you.
figured it was something like that, after looking at the stream with the debuger it didn't really look like it was err... "clean" after the close.