newline

4 次查看(过去 30 天)
DSP Masters
DSP Masters 2011-11-17
回答: Voss 2021-12-28
Hi, Anybody please help me in solving this problem.. I am writing an array of binary data into a file. After writing each binaryvalue the file pointer is to point to the next line. How to do t his..???
Thanks and regards, soumya
  1 个评论
Jan
Jan 2011-11-17
What exactly does "next line" mean in a binary file?

请先登录,再进行评论。

回答(1 个)

Voss
Voss 2021-12-28
You would have to put a newline() character in there, e.g., fprintf(fid,'\n'); The file pointer will then point to the next byte after that, i.e., ready to put the next data or whatever immediately after the newline.

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by