.dat files with visual C++

This is a discussion on .dat files with visual C++ within the C++ Programming forums, part of the General Programming Boards category; I am a newbie in VC++, but I was just wondering if you can write .dat files in VC++ like ...

  1. #1
    Shadow12345
    Guest

    .dat files with visual C++

    I am a newbie in VC++, but I was just wondering if you can write .dat files in VC++ like you can in Visual Basic.

  2. #2
    Unregistered
    Guest
    Yes, just like any other text file.

    Code:
    ofstream fileOut( "test.dat", ios::out );

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reading .dat files from a folder in current directory...
    By porsche911nfs in forum C++ Programming
    Replies: 7
    Last Post: 04-04-2009, 10:52 PM
  2. Accessing .dat files within a folder
    By porsche911nfs in forum C++ Programming
    Replies: 4
    Last Post: 04-02-2009, 11:26 PM
  3. Errors with including winsock 2 lib
    By gamingdl'er in forum C++ Programming
    Replies: 3
    Last Post: 12-05-2005, 08:13 PM
  4. question about .net to 6.0 change causing errors
    By jverkoey in forum C++ Programming
    Replies: 17
    Last Post: 03-23-2004, 10:45 AM
  5. Replies: 3
    Last Post: 05-03-2002, 06:18 PM

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