Help me with my Text Editor(very simple one....)

Ok,so ive written a very simple program which inputs and outputs raw data from a file.The program compiles fine,but the function named Output() (in the File-Reader.hpp header) is the one I think is causing trouble bcoz in the main() where this function is called it refuses to terminate...

I hav written very large(for a screen) code,so I hav placed the code in a separate webpage(please dont mind !!!).
The main.cpp ---> http://paste.debian.net/706893/
The File-Reader.hpp ---> http://paste.debian.net/706892/

As i said,the line 28 in main.cpp refuses to terminate.Anyone who can help me,a very thnx in advance :D
Its just a simple project tht im trying to do to recap my c++ knowledge...i havent touched c++ for a year and i did like if i could get any help or suggestions....

And its not meant to be a replacement for nano,vim or emacs....Especially NOT for nano or vim...
Pls help me guys,ive been waiting for 2 hours at the least... :(
Hi,

It seems you are looping on eof for an output file? Will need to come up with a different condition there.

One shouldn't loop on eof on any occasion, so I would change that for the input function. Just loop on the stream itself.

Hope this helps :+)
Topic archived. No new replies allowed.