I have a list of files all indexed as
filename1,filename2,filename3,... up to 50, all in the same directory, and I wanted an AppendTo them to a list and ToExpression in index order 1,2,...,50.
Does anyone know of a good method to do this? Thanks!
list = FileNames[FileNameJoin[dir, "filename*"]]wherediris a string specifying the directory. Afterwards you canMapanything over that list, for example,Import... – Henrik Schumacher Feb 04 '19 at 18:08filename10,11,12,...,19,1,20,21,...,29,2? This is the index order if you considerFileNamesand I fear therefore it will not order my index correctly – MKF Feb 04 '19 at 18:12Table["filename" <> IntegerString[i], {i, 1, 50}]– Henrik Schumacher Feb 04 '19 at 18:15