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

3 次查看(过去 30 天)
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