Thread: simple file I/O question

  1. #1
    Call me AirBronto
    Join Date
    Sep 2004
    Indianapolis, Indiana

    simple file I/O question

    i have not done file IO in a long time so can someone awnser this question

    will function fputc() work only when you are at the end of a file or will it replace what is in the file buffer with what you put in fputc() at the current place the file pointer is pointing to.


  2. #2
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Google is your friend. man fgetc. . . or if you are on MinGW/*nix you could man fgetc.

    Google's first post was this.

  3. #3
    Registered User
    Join Date
    Oct 2001
    The latter. It will write the character at the current file position.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A simple file I/O problem
    By eecoder in forum C Programming
    Replies: 10
    Last Post: 10-16-2010, 11:00 PM
  2. C++ File I/O question
    By zero_cool in forum C++ Programming
    Replies: 3
    Last Post: 08-16-2005, 10:43 AM
  3. File I/O question... please help!
    By sirSolarius in forum C++ Programming
    Replies: 11
    Last Post: 10-07-2003, 08:30 AM
  4. File I/O Question
    By DocDroopy in forum C Programming
    Replies: 4
    Last Post: 08-02-2002, 08:58 AM
  5. I have a file I/O question as well
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 11-29-2001, 04:11 PM