0

I have a file with .dat extension which contains some binary data.i want to convert this to readable text format in c++.Read data line by line .

1 Answers1

0

You have tried this way? Read / Write Binary Data.

You can now iterate the data in the buffer and cast them to a char.

Now you can write the chars.

Depending on your encoding the binary data will be "some char".

Linebreaks mostly are '10 or '13'.

ElHubert
  • 21
  • 6