list1 = OpenRead[
"/home/sachin/Downloads/mam_code_evans/neutral_fix/n_t/nt.txt"];
dataa = ReadList[list1, {Number, Number, Number}];
y1 = dataa[[All, 2]];
y2 = Table[1000, {i, 1, 100000}];
y3 = Flatten[{y1, y2}];
I have 100 nt1.txt, nt2.txt, nt3.txt ... How to read these 100 files and save them in a 100 lists (in a loop) and then take average?
Table
or some functions to build a list with elements are path and name of your data. Then finally mapOpenRead
over it. $\endgroup$