필터 지우기
필터 지우기

How to copy contents of one text file to other text or .c file ?

조회 수: 3 (최근 30일)
Sameer Kumthekar
Sameer Kumthekar 2014년 3월 26일
댓글: Sameer Kumthekar 2014년 3월 27일
Hi,
I want to write model version specific data at the top of .c file containing code. I could write it to the end of .c file by opening file in append+ mode.but is there any way to write from start by pushing down the existing contents?
please help , thanks in advance Sameer

채택된 답변

Joseph Cheng
Joseph Cheng 2014년 3월 26일
편집: Joseph Cheng 2014년 3월 26일
This link How can I prepend text to a file using MATLAB? should be what you need.

추가 답변 (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