Writing ASCII symbols by using fprintf
Mostrar comentarios más antiguos
Hello, Everybody, I will be grateful if you can help me... I have opened a .dat file with fopen and write on it by fprintf to write some numbers. At the end of each line i should put ASCII No13(CR)+No10(LF) and at the end of the file, i should write ASCII No26(EOF). these are the criterion of the program who will read this file and are mandatory. As this file is almost 100000 line i should write this file automatically with MATLAB. How i can put ASCII No13(CR)+No10(LF) automatically at the end of each line and the same on for ASCII No26(EOF)at the end of file by using frprintf?
2 comentarios
"ASCII No26(EOF)."
ASCII does not have an "End Of File" character. Did you mean:
- The 26th character is "End of Medium", abbreviated EM, and has decimal value 25, hex value 19.
- the 27th character is "Substitute", abbreviated SUB, and has decimal value 26, hex value 1A.
Which of these do you need?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Common Operations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


