Overwrite Existing Text File with Updated Data

2 views (last 30 days)
Dear Community,
My goal is to overwrite an existing text file with updated data. For example, my existing file looks like this
Val_11 Val_12 Val_13 Val_14
Val_21 Val_22 Val_23 Val_24
... ... .... .... ... ... ....
Val_mn Val_mn Val_mn Val_mn
Several times I need to re-evaluate the data from line Val_21 Val_22 Val_23 Val_24]. Is there a way to just open the file, search for this row and change the values without having to re-analyze all the exisitng values? Is using SQL a better approach? Any help is appreciated.
CJ

Answers (0)

Community Treasure Hunt

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

Start Hunting!