def random(fileName) setup = open(fileName, "r" ) z = setup.readline() waiting = stack() for line in setup: customerNum, arrivalTime, serviceTime = line.split() plane = Customer(customerNum, arrivalTime, serviceTime) push(waiting, plane) setup.close() print "The data file specifies a", z, "-server simulation." print "There are", len(waiting) , "arrival events in the data file."
This is the output, I tried a bunch of stuff but I get that line break after the variable z every time!
The data in the text file is ran through a clas I created but that has not effect with this print statement??
Please Enter a Filename. test.txt
The data file specifies a 5
There are 1000 arrival events in the data file.