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

2 ビュー (過去 30 日間)
priyanka
priyanka 2015 年 5 月 15 日
コメント済み: Joseph Cheng 2015 年 5 月 15 日
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 Center および File ExchangeLow-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