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

Risposte (1)

Stephen23
Stephen23 il 27 Set 2018
Modificato: Stephen23 il 27 Set 2018
fopen the file using the append option 'a'.

1 Commento

andre contini
andre contini il 26 Giu 2020
Modificato: Stephen23 il 26 Giu 2020
> fileID = fopen('filename.txt','at');

Accedi per commentare.

Categorie

Scopri di più su Environment and Settings in Centro assistenza e File Exchange

Tag

Richiesto:

il 27 Set 2018

Modificato:

il 26 Giu 2020

Community Treasure Hunt

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

Start Hunting!

Translated by