Thread: Need some code on File I/o

  1. #1
    rcorbett
    Guest

    Question Need some code on File I/o

    I need some code on file input and output. On how to change the data in the file especially numbers. Thanks for all your help!

  2. #2
    Unregistered
    Guest
    In broad terms you either use file pointers (C) or streams (C++, can use file pointers here too if you want). I suggest you read up on these topics in an online text such as Liberty's Teach Yourself C++ in 21 days, available at several sites.

    In order to manipulate files you need to read the data into your program, manipulate it, then write it back to the file.

    In order to accuratley read the file, you need to know the specifics of how it is set up.

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. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM
  3. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  4. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  5. Simple File encryption
    By caroundw5h in forum C Programming
    Replies: 2
    Last Post: 10-13-2004, 10:51 PM