I have written a small module that first finds all the files in the directory, and merge them.
But, I'm having the problem with opening these files from a directory.
I made sure that my files and directory names are correct, and files are actually in the directory.
Below is the code..
seqdir = "results"
outfile = "test.txt"
for filename in os.listdir(seqdir):
in_file = open(filename,'r')
Below is the error..
in_file = open(filename,'r')
IOError: [Errno 2] No such file or directory: 'hen1-1-rep1.txt'
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…