Nov-03-2018, 06:16 PM
If you don't have access to os, you are at least given a list of the file names right? Otherwise I don't see how you can do it.
This is a way to read a file in a loop:
Also, please post code in python tags. See the BBCode link in my signature below for instructions on how to do that.
This is a way to read a file in a loop:
with open("results/expAAndrew12062013164623.csv", "r") as andrewfile: for line in andrew file: fields = line.strip().split(',')You could put that in a for loop that cycles through the file names and reads them all, assuming they have the same format.
Also, please post code in python tags. See the BBCode link in my signature below for instructions on how to do that.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures