Thread: Problems with ofstream

  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.

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, 02: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, 03:00 PM
  4. Replies: 9
    Last Post: 06-06-2002, 07: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