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

2 views (last 30 days)
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

Accepted Answer

Joseph Cheng
Joseph Cheng on 26 Mar 2014
Edited: Joseph Cheng on 26 Mar 2014
This link How can I prepend text to a file using MATLAB? should be what you need.

More Answers (0)

Categories

Find more on Text Data Preparation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!