How to concatenate horizontally multiple text files in a folder to have all data in one txt file?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
DC
am 12 Feb. 2016
Beantwortet: Fangjun Jiang
am 12 Feb. 2016
Have 25 files in a folder each having around 1,000,000 rows. And want to have one text file having all the data i.e. 25,000,000 rows.
0 Kommentare
Akzeptierte Antwort
Fangjun Jiang
am 12 Feb. 2016
The old fashion DOS command copy could do the task. You can also call it in MATLAB using system(). The trick is the "+" symbol.
system('copy test1.txt+test2.txt+test3.txt test.txt')
As long as there is a carriage return at the end of each text file, the concatenate looks right.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Large Files and Big Data finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!