0
Can anyone tell me how to convert a binary file into .csv file in c
I am tried it by simply using file copy program but it doesn't working properly.
2 Answers
+ 4
Ayan Banerjee
First, take a look at these Q/As and then do the math to see is it feasible or not.
Q1: What's a binary file?
A1: A file which contains custom binary data and possibly textual data with a specific encoding specified by the type of the file such as executables, media files, etc. (machine readable file)
Q2: What's a text file?
A2: A file which contains only textual data with a specific encoding such as ASCII, Unicode, etc. (human readable file)
Q3: What's the relationship between them?
A3: textual data is a subset of binary data.
Q4: What's a CSV file?
A4: A comma-separated values file is a text file contains a bunch of delimited textual data that uses a comma to separate values.
Exception: If you have a converted CSV binary file and you are sure about how it has been formatted, then it'd be more likely to be able to implement a converter to reverse the whole thing to its original textual form.
+ 1
"binary file" only means that it is not a text file. For example .exe and .jpeg are binary files and you can't convert those to .csv!
What kind of binary file are you working with?