How to copy data of one text file to another text file in matlab.

4 次查看(过去 30 天)
I need to copy data (string, space and special characters are included) of one text (.txt) file into another text (.txt) file.

回答(1 个)

Star Strider
Star Strider 2015-5-15
Use the copyfile function.
  1 个评论
Joseph Cheng
Joseph Cheng 2015-5-15
if you do not want to make just another copy of the file and insert it into another txt file. read up on fopen, fgetl, fwrite, fprintf, and see which ones suit your needs.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Low-Level File I/O 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by