This seems to work for me however it is plotting the results in the wrong order as i think it is reading the file names not in a numerical order but ...
To use a file that is in one of the directories on $Path or your current working directory, you only need to specify the name of the file. Import the file "noise.jpg" ...
The problem, very likely, is that the files are not random but sorted by string name . For example: Sort@Table[ StringTemplate["``.jpg"]@k , {k, 30} ] (* {"10.jpg", ...
FileNames[] lists all files in the current working directory. FileNames[form] lists all files in the current working directory whose names match the string pattern form ...
Timings to find the name of the most recent file in a large directory of files. This is pretty much instant : StringDrop[Part[Rest@ StringSplit[Import["!dir /od /a:-d ...
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, ...
dateOrdered = ((names = FileNames["*.dat"])[[Ordering[ FileDate[#, "Modification" ] & /@ names]]]); data = Import[#, "Table"] & /@ dateOrdered;.
Import[source] imports data from source, returning a Wolfram Language representation of it. Import[source, " format"] takes the file to be in the specified format.
You can use FileNames to collect the names of the data files you want to import, with the usual wildcards. And then just map the Import ...
path, select a file in that folder and manually delete the file name from the path.