reading and writing to a data file

This is a discussion on reading and writing to a data file within the C++ Programming forums, part of the General Programming Boards category; how do you read and write to a data file that the program ( microsoft visual C++) itself creates (which ...

  1. #1
    Unregistered
    Guest

    reading and writing to a data file

    how do you read and write to a data file that the program ( microsoft visual C++) itself creates (which i also need to know how to do)? for instance, if the user inputs a variable, how (and what are the commands to) do you write that variable to a file? How do you then read that file from a program and what are the commands?

  2. #2
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    go to www.cplusplus.com and look up fstream

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reading out of and writing into the same file
    By Wiretron in forum C Programming
    Replies: 8
    Last Post: 12-30-2006, 02:04 PM
  2. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  3. file writing and reading
    By Micko in forum C Programming
    Replies: 8
    Last Post: 01-13-2004, 11:18 AM
  4. help with reading a data file
    By zipfur in forum C Programming
    Replies: 4
    Last Post: 11-02-2002, 06:50 PM
  5. what does this mean to you?
    By pkananen in forum C++ Programming
    Replies: 8
    Last Post: 02-04-2002, 03:58 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21