- fprintf, write data to text file
- fwrite, write data to binary file
Difference between fprintf and fwrite?
15 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ivana
il 25 Ott 2012
Commentato: David J. Mack
il 18 Gen 2017
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 Commenti
Risposta accettata
Azzi Abdelmalek
il 25 Ott 2012
1 Commento
David J. Mack
il 18 Gen 2017
To be really precise, fprintf writes data in text, fwrite in binary format, but both functions can write to the same (mixed-type) file.
Più risposte (1)
Sachin Ganjare
il 25 Ott 2012
fprintf blocks the command line to execute other commands while the data is getting transferred while fwrite doesn't.
Vedere anche
Categorie
Scopri di più su Whos in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!