I\'m currently reading a file and importing the data in it with the line:
# Read data from file. data = np.loadtxt(join(mypath, \'file.data\'), unpack=True)
I simple solution would be to use the python modules "os" and "re":
import os import re for file in os.listdir(mypath): if re.match("file_\d+\.data", file): ...