I have 1000 text files, their names are A0000.txt, A0001.text, ..., A1000.text. I want to read the information in text files and save some of them in an excel file or csv file (preferably csv).
How to define a for loop that can accomplish this task?
I can use this function A = textread('A0000.txt','%s')to read a single text file, but I do not know how to put it in a for loop. If the file name was 1.txt, 2.txt, ..., 1000.txt, it would be easier.
I would appreciate it if you could provide any help.
source
share