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

Answers (1)

Stephen23
Stephen23 on 27 Sep 2018
Edited: Stephen23 on 27 Sep 2018
fopen the file using the append option 'a'.

1 Comment

> fileID = fopen('filename.txt','at');

Sign in to comment.

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Asked:

on 27 Sep 2018

Edited:

on 26 Jun 2020

Community Treasure Hunt

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

Start Hunting!