Write a substring in a Text file with existing string
1 view (last 30 days)
Show older comments
Saeed Soltani on 30 May 2016
Edited: Saeed Soltani on 2 Jun 2016
Hi, I would like to write a word in the following of an existing string in text file, but with my code it deletes the whole and write the new word.
fid = fopen('File.text','w');
I just need to find end of line, and add the new word with only one space to the rest. Should I use textscan or?
Stephen23 on 30 May 2016
Edited: Stephen23 on 30 May 2016
More Answers (0)
Find more on Characters and Strings 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!