I have 101 files with data that I want to import into Mathematica. All the file names are numbered as follows datafile.20.0000.out, datafile.20.1000.out, datafile.20.2000.out and so on. I used the solution posted here http://mathematica.stackexchange.com/questions/22357/importing-multiple-files-using-a-for-loop
However, the problem I am facing is the zeros at the end. I tried using
z = Table[i, {i, 20, 30, 0.1}]
Data =
Table[
Import["C:\\Dropbox\\Sims\\datafile." <>
ToString[NumberForm[z[[j]], {6, 4}]] <> ".out", "Data"],
{j, 20,30}]
But I'm getting error messages.
I would like to retrieve date of each file by Data[[1]]
, Data[[2]]
and so on.