Thread: using fstream

  1. #1
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005

    using fstream

    I am sick of hard coding my rpg games, and though of writing the
    text i need from int convasation between characters and placing it all in a single text file.

    I know fstream imports text from another file into a cpp souce file, but i do not know how to do it! All my books do not suggest using fstream and I do not know how the header works. It would be so usful to me if I knew how to do it..

    Do any of you guys know how to incoreperate fstream, or have any links I could follow? Many thanks!

  2. #2
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Out of scope
    The tutorials have a File I/O section in it's tutorials. Check that out.

    [EDIT] My redundancy is very redundant. [EDIT]
    Last edited by SlyMaelstrom; 02-12-2006 at 01:34 AM.
    Sent from my iPadŽ

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problems with fstream, one variabile for write and read
    By Smjert in forum C++ Programming
    Replies: 3
    Last Post: 02-03-2009, 10:19 PM
  2. Fstream. I/O
    By kevinawad in forum C++ Programming
    Replies: 2
    Last Post: 07-07-2008, 09:19 AM
  3. ARGH! fstream errors
    By OttoDestruct in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2004, 10:37 PM
  4. Are fstream and ofstream incompatible?
    By johnnyd in forum C++ Programming
    Replies: 5
    Last Post: 03-19-2003, 12:21 PM
  5. Problems with fstreams.
    By mosdef in forum C++ Programming
    Replies: 7
    Last Post: 06-19-2002, 03:36 PM