Thread: Save to File

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #15
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    Code:
    outfile >> name;
    outfile >> "\n";
    outfile  >> age;
    outfile  >> "\n";
    outfile  >> location;
    outfile  >> "\n";
    outfile  >> birthplace;
    Wrong operator. Use << for ofstream, not >>.
    There's no such thing as a char with unlimited length... nor is there a practical use for one. Oh, and try the code from my last post, I had copied the wrong code... it's fixed now.
    Last edited by Eibro; 12-01-2002 at 01:22 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Save a file with a name in a variable?
    By guriwashere in forum C Programming
    Replies: 2
    Last Post: 06-01-2009, 04:03 PM
  2. Need Help Fixing My C Program. Deals with File I/O
    By Matus in forum C Programming
    Replies: 7
    Last Post: 04-29-2008, 07:51 PM
  3. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 08:39 AM
  4. Ask user to save file before exiting.
    By Bajanine in forum Windows Programming
    Replies: 3
    Last Post: 11-15-2004, 06:34 PM
  5. archive format
    By Nor in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 08-05-2003, 07:01 PM