how i can make binary file to ascii converter | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how i can make binary file to ascii converter

5th Jun 2018, 6:10 AM
sahil
sahil - avatar
2 Answers
+ 1
There is no such thing as a binary file, all files are stored as binary. What matters is the format. What we usually mean by binary is a binary executable, which is raw machine code, and can't be meaningfully converted to ASCII.
5th Jun 2018, 7:18 AM
Vlad Serbu
Vlad Serbu - avatar
0
You can read the data from the binary file in the raw form and then rewrite the data via stream operators to a text file. Note that this may lead to a change in file size.
5th Jun 2018, 5:12 PM
Kinshuk Vasisht
Kinshuk Vasisht - avatar