How to write data to an exact row in a text file
Show older comments
Hello, I need to edit a parameter text file for my task and I need to change the value on i.e. 30th row of that parameter file with a loop then save the file. I've tried to come up with a function that does the trick, but couldn't find a proper one.
I'll be faithful if someone can offer some guidance. Thanks in advance.
2 Comments
Azzi Abdelmalek
on 2 Oct 2012
Edited: Azzi Abdelmalek
on 2 Oct 2012
What kind of data are in your file, why don't you post a sample of your text file?
don't comment your question with an answer, just post a comment like I did
Accepted Answer
More Answers (1)
Al Onen
on 2 Oct 2012
0 votes
Categories
Find more on Data Import and Export 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!