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*"]]
wheredir
is a string specifying the directory. Afterwards you canMap
anything over that list, for example,Import
... $\endgroup$filename10,11,12,...,19,1,20,21,...,29,2
? This is the index order if you considerFileNames
and I fear therefore it will not order my index correctly $\endgroup$