View Full Version : EOF sequence in Eclipse

February 23rd, 2009, 08:14 AM
I am learning C++ and I have written this program from a textbook. It's a program from the file processing chapter.
Anyway, the program expects you to type ctrl-z for end-of-file.
I have read that it might be ctrl-d in linux.
The thing is, I'm using the eclipse environment to program and so when I run the program in the eclipse environment I am using the console in eclipse to input into the file.

It doesn't seem to recognise ^d or ^z.
Is there a way I can use signal EOF to this program within the eclipse environment?