フィルターのクリア

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.
  1 件のコメント
Sameer Kumthekar
Sameer Kumthekar 2014 年 3 月 27 日
Thanks a lot Cheng !! That worked... ! Sameer

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import and Export についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by