Problems with ofstream

This is a discussion on Problems with ofstream within the C++ Programming forums, part of the General Programming Boards category; *sigh* Nope, still not working. This is starting to irritate me.....

  1. #16
    Registered User
    Join Date
    Nov 2005
    Posts
    9
    *sigh* Nope, still not working. This is starting to irritate me..

  2. #17
    Registered User
    Join Date
    Nov 2005
    Posts
    9
    Oh god. You're going to hate me.

    I just found out what's wrong. It turns out that when I changed the input method for the playername variable, I screwed it up. The file was outputting properly, its just that the first character of the variable was NULL.

    Well, thanks for the help, at least it'll show in the archives for if any new guys hit problems. And that code you gave me is a lot more efficient. Many tanks.
    Last edited by NightDaemon; 11-02-2005 at 03:07 AM.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. No clue how to make a code to solve problems!
    By ctnzn in forum C Programming
    Replies: 8
    Last Post: 10-16-2008, 03:59 AM
  2. ofstream and ifstream for searching and writing
    By johnnyd in forum C++ Programming
    Replies: 6
    Last Post: 03-17-2003, 08:34 AM
  3. ifstream and fileIn problems
    By jobolikescake in forum C++ Programming
    Replies: 8
    Last Post: 10-26-2002, 04:00 PM
  4. Replies: 9
    Last Post: 06-06-2002, 08:03 PM
  5. Removing *Unchanged* Output File (ofstream) :: C++
    By kuphryn in forum C++ Programming
    Replies: 2
    Last Post: 01-05-2002, 07:47 PM

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