Thread: File I/O

  1. #1
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,138

    File I/O

    I was thinking and I wondered if it was possible to read in an entire line from a file without taking it from a file. I know you can use peek and seekg to read in a character and move the location of where to take in from. However, peek only takes in one char and I was wondering if it was possible to take in the entire line.

  2. #2
    Unregistered
    Guest
    reading from a file doesn't remove data from the file as such, although writing to a file can, but doesn't necessarily have to, overwrite data in file. If all you do is read from the file, then data will remain constant in file. You can make files read only if you wish.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 09:35 AM
  2. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  3. 2 questions surrounding an I/O file
    By Guti14 in forum C Programming
    Replies: 2
    Last Post: 08-30-2004, 11:21 PM
  4. File I/O problems!!! Help!!!
    By Unregistered in forum C Programming
    Replies: 4
    Last Post: 05-17-2002, 08:09 PM
  5. advice on file i/o
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 11-29-2001, 05:56 AM