- fprintf, write data to text file
- fwrite, write data to binary file
Difference between fprintf and fwrite?
16 ビュー (過去 30 日間)
古いコメントを表示
Hello, I am using a serial communication and I want to send some data. I was wondering what is the actual difference between the fprintf and fwrite function? Thanks!
0 件のコメント
採用された回答
Azzi Abdelmalek
2012 年 10 月 25 日
1 件のコメント
David J. Mack
2017 年 1 月 18 日
To be really precise, fprintf writes data in text, fwrite in binary format, but both functions can write to the same (mixed-type) file.
その他の回答 (1 件)
Sachin Ganjare
2012 年 10 月 25 日
fprintf blocks the command line to execute other commands while the data is getting transferred while fwrite doesn't.
参考
カテゴリ
Help Center および File Exchange で Whos についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!