Extension change from .txt to .Z14
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Sergio Vez
am 29 Okt. 2019
Kommentiert: Sergio Vez
am 29 Okt. 2019
Good morning,
I need to edit a file with a extension ".Z14" in MATLAB.
- First thing I did was a programm that opens a ".txt" file and saves a ".txt" file with the changes I had to make. (In order to do so, I first had to open the ".Z14" in my computer and save it as a ".txt" file)
- The problem is that I get (save) a file in ".txt" but I need it in ".Z14".
- If I just change the program and read a ".Z14" file and save a ".Z14" file, the programm doesn't work (I does not make the changes I need).
How could I fix it?
Thanks in advance!
Sergio
0 Kommentare
Akzeptierte Antwort
galaxy
am 29 Okt. 2019
You can copy file as following
file1='A.txt'
file2=strrep(file1,'.txt','.Z14')
copyfile(file1,file2)
6 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Import and Export finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!