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)
Also check out fnmatch:
>>> import fnmatch >>> import os >>> >>> fnmatch.filter(os.listdir('.'), 'file_*.data') ['file_3453453.data'] >>>