NevSoFly
asked on
convert .bin to .txt
Hi,
I need a quick way to convert a binary file (.bin) to a text file. I'm pretty sure this is easy but all the samples that I have seen only deminstrate how to convert a binary string to text.
I need a quick way to convert a binary file (.bin) to a text file. I'm pretty sure this is easy but all the samples that I have seen only deminstrate how to convert a binary string to text.
What exactly is in your .bin file? This isn't a standard file extension with a well known format...it could be anything!
ASKER
I'm not sure what your asking me. The file is simply a binary file used to keep log info.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you very much for the explination. I did not write this file it is a company file written by some engineer many years ago and is still used today. I am trying to automate a process by converting the file to txt and then reading the log info in it.
I now understand why I haven't been able to find sample code on the net.
I now understand why I haven't been able to find sample code on the net.
If you don't have any documentation on the format of this file then I'm afraid the best you can do is look at the source code that generated it to figure out the structure and logic behind it.
If no source code is available, then sometimes you can give inputs to an app and see how it converts that to a .bin file. Obviously this is not always possible...
Finally, you can attempt to glean information from the file by inspecting it with a Hex Editor.
Good luck!
If no source code is available, then sometimes you can give inputs to an app and see how it converts that to a .bin file. Obviously this is not always possible...
Finally, you can attempt to glean information from the file by inspecting it with a Hex Editor.
Good luck!