MATLAB Answers

How to add data to an existing txt file which already contains some lines ?

107 views (last 30 days)
How to add data to an existing txt file which already contains some lines ?

More Answers (1)

Stephen
Stephen on 6 Aug 2015
Edited: Stephen on 6 Aug 2015
Read the fopen documentation and have a look at the permission options. You will find the permission 'a' or 'a+' of particular interest.
You can use fprintf to print text to file, or one of the other text-file writing functions.

Tags

Community Treasure Hunt

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

Start Hunting!