Parsing a Binary File (NOT using fread)
古いコメントを表示
I am trying to put together a (generic) binary parsing tool over the weekend that I can modify with specifics for a particular binary file (if someone could explain why there are different "types" of binary files, I would appreciate it...) at work on Monday. It is my understanding that parsing a binary file is faster than parsing plaintext, so to speed up my program, I would like to parse the binary file which has previously been converted to plaintext for parsing. I know about fread, but that seems to be something to read binary by converting it to plaintext - this is not what I want to do.
Any help with parsing a binary file (ie looking for specific values/phrase, which I will likely have to convert from plaintext to binary...) will be much appreciated.
2 件のコメント
Walter Roberson
2012 年 11 月 9 日
What do you mean by "plaintext" in this situation?
Image Analyst
2012 年 11 月 9 日
編集済み: Image Analyst
2012 年 11 月 9 日
What have you got against fread?
An example of what you're starting with and what you want to end up with would help. Just one line or something.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Import, Export, and Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!