0

How to convert a txt file to dat

How to convert a c++ text file to binary( dat) file

29th Aug 2020, 6:25 PM
Marble Kusanele Mpofu
Marble Kusanele Mpofu - avatar
2 Answers
+ 5
The dat file extension is about the least specific extension possible. Many programs format files with the .dat extension differently. It is often for files with a format only known by the program that wrote them. You could just rename the file extension from .txt to .dat. I wouldn't invest the effort to change the format of its data unless a more specific requirement was made to match something else. A text file is quite simple to read and write. If the information you current store is a bunch of text with no text formatting or validation rules, just keep using a plain text format.
29th Aug 2020, 7:02 PM
Josh Greig
Josh Greig - avatar
0
Great input Thanks
29th Aug 2020, 7:52 PM
Marble Kusanele Mpofu
Marble Kusanele Mpofu - avatar