Hi MATLAB folks,
I have a long .txt file which each line of that has its own specific format, e.g.
contents of a sample text filecreated on Sept. 21, 2012no. day month year1 Sat Jan 20122 Mon Sept 2001
Now, I am looking for a way to read its, let say 4 lines, and keep the format of these lines when I am writing this data into other text file so that I end up with:
contents of a sample text filecreated on Sept. 21, 2012no. day month year
in my new .txt file.
Is there any suggestion?
Many thanks in advance, -V
Best Answer