I have an ASCII file I am reading in line-by-line into MATLAB. When I find a particular line, I want to replace it. FOPEN only allows me to open a file for either overwriting or appending. Neither of these would allow me to replace text in the middle of the file.
MATLAB: Is it possible to insert or replace text in the middle of an ASCII file in MATLAB 8.1 (R2013a)
changeeditmatchMATLABmodifyreplaceswap
Best Answer