Thread: File I/O

  1. #1
    Registered User
    Join Date
    Apr 2003

    File I/O

    Hi, I am new to c++, though I have practised it for a few months, but that's about 6 months ago now. I've dicided to take another shot at it

    I'm working on a tiny program now, it's quite useless and just to learn. Anyway, I want this program to allow the user to input information, and then store this information into a .txt file. The problem is that I can't figure out how to let the program find this stored information after it(the program) has been closed.

    Maybe someone can shortly explain this to me; Or just give me a link to a website that explains File I/O in more detail than the tutorial of does.

  2. #2
    Registered User
    Join Date
    Jan 2003
    Long time ago, I found this site to be really useful. It includes tutorials and an almost complete reference of the standard libraries.

    Here's the list of tutorials. A link to the file i/o part is near the bottom.

  3. #3
    Registered User
    Join Date
    Apr 2003
    Thanks for the links! Just what I was looking for!

  4. #4
    Rabite SirCrono6's Avatar
    Join Date
    Nov 2003
    California, US

    Post Note:

    Just a note. I wouldn't recommend the tutorial on this site. It hasn't been updated in a while. It uses things that are not up to the standard (I.E. #include <iostream.h> and ios :: nocreate which is a non-standard I/O stream thing). Also, it will at times quiz you on something you had not learned (Note the first quiz: Which is not a variable type? You had to guess if it was double or real, they had not been mentioned). But remember, just my advice. I learned a lot from it, but regreted learning non-standard habits. You should get a good book if you want a good understanding of C++, that is to the standard...

    - SirCrono6
    From C to shining C++!

    Great graphics, sounds, algorithms, AI, pathfinding, visual effects, cutscenes, etc., etc. do NOT make a good game.
    - Bubba

    IDE and Compiler - Code::Blocks with MinGW
    Operating System - Windows XP Professional x64 Edition

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