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

4 vues (au cours des 30 derniers jours)
priyanka
priyanka le 15 Mai 2015
Commenté : Joseph Cheng le 15 Mai 2015
I need to copy data (string, space and special characters are included) of one text (.txt) file into another text (.txt) file.

Réponses (1)

Star Strider
Star Strider le 15 Mai 2015
Use the copyfile function.
  1 commentaire
Joseph Cheng
Joseph Cheng le 15 Mai 2015
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.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Low-Level File I/O dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by