write in txt file staring from the last line

I just want to write in txt file starting from the line after the last line not to delete all lines and start from the beginning

Réponses (1)

Stephen23
Stephen23 le 27 Sep 2018
Modifié(e) : Stephen23 le 27 Sep 2018

1 vote

fopen the file using the append option 'a'.

1 commentaire

andre contini
andre contini le 26 Juin 2020
Modifié(e) : Stephen23 le 26 Juin 2020
> fileID = fopen('filename.txt','at');

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB dans Centre d'aide 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