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
Printable View
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
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.