How to read 'long long' from binary file?
1 回表示 (過去 30 日間)
古いコメントを表示
Hello community,
I've got a binary file which was written with C++. How can I read a number in 'long long' format (8 bytes)? In the Matlab help I found only this info:
reading binary file with function _ fread(fileID, sizeA, precision)_ where precision could be only 'long' (in my case), but this is only 4 bytes.
Thanks in advance!
Andrew
0 件のコメント
採用された回答
James Tursa
2014 年 3 月 25 日
For precision use '*int64'. If the file was written on a different machine you may need to deal with endian stuff as well.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!