Thread: Another Question Dealing With I/O.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jan 2009
    Location
    Salisbury N.C.
    Posts
    20

    Another Question Dealing With I/O.

    For some reason my ofstream command isn't working, I can't run my program
    Code:
    #include <iostream>
    #include <fstream>
    
    int Main()
    {
    ofstream a_file ("C:\users\jason\excess\testfile.txt");
    
          }

    I keep getting these errors, which I don't understand

    Line 6: 'ofsteam' undeclared (first use this function)

    Line 6: expected ';' before 'a_file'

    Lines 6:18 incomplete universal character name \u


    and one warning

    6:18 unknown escape sequence '\i'
    Last edited by The7thCrest; 02-04-2009 at 06:24 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple question about file I/O.
    By The7thCrest in forum C++ Programming
    Replies: 2
    Last Post: 02-04-2009, 05:15 PM
  2. C++ File I/O question
    By zero_cool in forum C++ Programming
    Replies: 3
    Last Post: 08-16-2005, 10:43 AM
  3. basic i/o question cout<<str;
    By Noobie in forum C++ Programming
    Replies: 9
    Last Post: 02-09-2003, 12:11 AM
  4. Overlapped I/O and Completion Port :: Winsock
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 10-30-2002, 05:14 PM
  5. Dealing with i/o streams in a class
    By ender in forum C++ Programming
    Replies: 3
    Last Post: 03-22-2002, 05:26 PM