edit txt file but save previous data
Show older comments
helo guys
I generated a table , wrote in a txt file, and when I run again my code I will choose other file, it will write a new table... I want add this table in that same txt file which was the information of first table.
I did this at the end of program;
fid=fopen('dataFULL.txt','a+');
writetable(T,'dataFULL.txt','Delimiter',',');
fclose(fid);
when I run my code twice in order to choose other file... it is rewriting my txt file and doesn't save the previous data :((((((((((
Guys... any idea how can I do this?
Accepted Answer
More Answers (0)
Categories
Find more on Text Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!