필터 지우기
필터 지우기

Extension change from .txt to .Z14

조회 수: 2 (최근 30일)
Sergio Vez
Sergio Vez 2019년 10월 29일
댓글: Sergio Vez 2019년 10월 29일
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

채택된 답변

galaxy
galaxy 2019년 10월 29일
You can copy file as following
file1='A.txt'
file2=strrep(file1,'.txt','.Z14')
copyfile(file1,file2)
  댓글 수: 6
Sergio Vez
Sergio Vez 2019년 10월 29일
Thank you. Now the problem is that when I do that in MATLAB, the .txt file appears like this
C a l c u l a t i o n . u p d a t e d
Intead of
Calculation.updated (as it was when I created the .txt outside MATLAB)
¿?
Sergio Vez
Sergio Vez 2019년 10월 29일
Can you help me please?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Export에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by