VS 2010 .DAT files-VBForums
Results 1 to 2 of 2

Thread: .DAT files

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2014
    Posts
    20

    Question .DAT files

    I am trying to open .DAT files into a richtextbox in vb 2010. When I open it, it has all the weird symbols (4["l. I need my program to be able to convert it and then save it with the same format.

    Thankyou in advance

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    96,588

    Re: .DAT files

    There is no one official format for DAT files. It's simply an extension that means that it's a data file and it's up to the application developer how they want to store their data. If you see gibberish then it's not a text file. It contains a binary representation of some data and you're just reading those bytes as characters, which produces nothing meaningful. You will have to find out how the data was saved in the first place and then perform the inverse operation to read it.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    MSDN "How Do I?" Videos: VB | C#
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.