Thread: Eof

  1. #1
    Unregistered
    Guest

    Eof

    How do I signify end-of-file when I'm running my program? I know it's ctrl-D on the PCs at uni, but it doesn't seem to work on my own PC!
    HELP!

  2. #2
    Code Warrior
    Join Date
    Nov 2001
    Posts
    669
    what exactly do you want?
    Current projects:
    1) User Interface Development Kit (C++)
    2) HTML SDK (C++)
    3) Classes (C++)
    4) INI Editor (Delphi)

  3. #3
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Try control Z.

    Basicly, it sounds as though they've set up their program to read from stdin until an EOF is detected. This is not a normal keystroke, and never will be, so you have to use a special case, based on OS, to input this.

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. EOF Explanation Anybody?
    By blackcell in forum C Programming
    Replies: 1
    Last Post: 01-29-2008, 09:09 PM
  2. EOF or not EOF?
    By CornedBee in forum Linux Programming
    Replies: 2
    Last Post: 09-14-2007, 02:25 PM
  3. EOF messing up my input stream?
    By Decrypt in forum C++ Programming
    Replies: 4
    Last Post: 09-30-2005, 03:00 PM
  4. whats the deal with EOF really ???
    By gemini_shooter in forum C Programming
    Replies: 7
    Last Post: 03-06-2005, 04:04 PM
  5. files won't stop being read!!!
    By jverkoey in forum C++ Programming
    Replies: 15
    Last Post: 04-10-2003, 05:28 AM