How can I open a .dat file?

This is a discussion on How can I open a .dat file? within the C Programming forums, part of the General Programming Boards category; I just made a .dat file while making a program and I kinda forgot how to open it. Please help....

  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    27

    How can I open a .dat file?

    I just made a .dat file while making a program and I kinda forgot how to open it.

    Please help.

  2. #2
    Chi! whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    8,221
    I'm not sure I understand the question.

    DAT files are extremely generic, generally they're only compatible with whatever program made them. Opening it in a hex editor might help you identify it if you know what you're looking for.

    Or you could be asking about opening files in a programming language. Is that it? What language?

  3. #3
    Registered User
    Join Date
    Nov 2011
    Posts
    27
    Quote Originally Posted by whiteflags View Post
    I'm not sure I understand the question.

    DAT files are extremely generic, generally they're only compatible with whatever program made them. Opening it in a hex editor might help you identify it if you know what you're looking for.

    Or you could be asking about opening files in a programming language. Is that it? What language?
    It's C and I'm using Microsoft Visual C++ 2008 Express Edition.

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    23,820
    *moved to the C programming forum*

    What is the source code of the program that you wrote? You probably used the fopen function, so take a closer look at that.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. cannot open file
    By aadil7 in forum C Programming
    Replies: 10
    Last Post: 03-22-2011, 07:19 PM
  2. cant open file - says no file or directory
    By sdsjohnny in forum C Programming
    Replies: 3
    Last Post: 07-02-2010, 10:57 PM
  3. Replies: 3
    Last Post: 03-08-2010, 01:43 PM
  4. Open File/Save File crashes on cancel?
    By Blackroot in forum Windows Programming
    Replies: 0
    Last Post: 08-02-2008, 02:16 AM
  5. Replies: 12
    Last Post: 03-10-2005, 06:48 PM

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