Save file with different extension
Ältere Kommentare anzeigen
Hi,
I am a newbie and am opening some files, adding some lines, then saving the files. I can't figure out how to save each file I open with a new extension while keeping the filename the same.
Here is how I am opening the files:
DefaultFile='';
[FileName,PathName] = uigetfile('*.*','Select File to Plot',DefaultFile); %choose file to open.
%%%%**************** Read the File *************
fid=fopen(fullfile(PathName,FileName));
To save the file do I use the following fopen and if so what do I put where the question marks are?
fileID = fopen(??????,'w');
Thanks
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Low-Level File I/O finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!