Thus, I write a tool to convert any binary file to hex-printable text file and then convert back.
There're some differences between unix and windows while programming the tool. I encountered two differences.
First one. I decide to use ifstream and ofstream STL classes to achieve this. In unix, even though I do not specify "ios:binary" while creating ifstream/ofstream object, it works well. But in windows, I have to specify "ios:binary", otherwise, problems encountered,
e.g. ifstream ret......
阅读全文