Hi,
I am stuck. I am trying to create a new file C:\HourlyATC\ATC101509\10-15-09 to 10-21-09 ATC.txt, and have a bunch of text wrote to this file to have it uploaded to a web site. At this point I would be happy if I could create the file and have the lines written to it. Below the lines x= are the ones I would like written to the above file, but I can't even get it to create the file that these lines will be written to.
Thanks for any help,
Joe

textfile = file('C:\HourlyATC\ATC101509\10-15-09 to 10-21-09 ATC.txt','wt')
noline=0
intFCITC_list = [] #Empty list where we will put all values of intFCITC
for line in open("C:\\HourlyATC\\ATC091015\\10150901.lis"):
    if noline==1:
        fcitc=line[:9].strip()
        intFCITC = int(float(fcitc)) #OP wants this to be integer.
        intFCITC_list.append(intFCITC)
        limConst=line[29:79].strip()
        noline+=1
    elif noline==2:
        contDesc=line[90:137].strip() #Added subscripts. Don't want entire line.
        print fcitc
        print limConst
        print contDesc
        noline=0
    if "FCITC" in line:
        noline+=1
print "\nList of intFCITC values:" #All the intFCITC values should be in intFCITC_list
print intFCITC_list
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,01/00/1900 0:00,01/00/1900 1:00"
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,10/15/2009 1:00,10/15/2009 2:00"
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,10/16/2009 2:00,10/16/2009 3:00"
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,10/17/2009 3:00,10/17/2009 4:00"
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,10/18/2009 4:00,10/18/2009 5:00"
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,10/19/2009 5:00,10/19/2009 6:00"
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,10/20/2009 6:00,10/20/2009 7:00"
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,10/20/2009 7:00,10/20/2009 8:00"
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,10/21/2009 8:00,10/21/2009 9:00"
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,01/00/1900 9:00,01/00/1900 10:00"
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,01/00/1900 10:00,01/00/1900 11:00"
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,01/00/1900 11:00,01/00/1900 12:00"
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,01/00/1900 12:00,01/00/1900 13:00"
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,01/00/1900 13:00,01/00/1900 14:00"
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,01/00/1900 14:00,01/00/1900 15:00"
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,01/00/1900 15:00,01/00/1900 16:00"
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,01/00/1900 16:00,01/00/1900 17:00"
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,01/00/1900 17:00,01/00/1900 18:00"
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,01/00/1900 18:00,01/00/1900 19:00"
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,01/00/1900 19:00,01/00/1900 20:00"
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,01/00/1900 20:00,01/00/1900 21:00"
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,01/00/1900 21:00,01/00/1900 22:00"
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,01/00/1900 22:00,01/00/1900 23:00"
x = "OUCT,"+str(intFCITC_list[0])+",,,,,,OUC,FPL,01/00/1900 23:00,01/00/1900 24:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 0:00,01/00/1900 1:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 1:00,01/00/1900 2:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 2:00,01/00/1900 3:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 3:00,01/00/1900 4:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 4:00,01/00/1900 5:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 5:00,01/00/1900 6:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 6:00,01/00/1900 7:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 7:00,01/00/1900 8:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 8:00,01/00/1900 9:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 9:00,01/00/1900 10:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 10:00,01/00/1900 11:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 11:00,01/00/1900 12:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 12:00,01/00/1900 13:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 13:00,01/00/1900 14:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 14:00,01/00/1900 15:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 15:00,01/00/1900 16:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 16:00,01/00/1900 17:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 17:00,01/00/1900 18:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 18:00,01/00/1900 19:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 19:00,01/00/1900 20:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 20:00,01/00/1900 21:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 21:00,01/00/1900 22:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 22:00,01/00/1900 23:00"
x = "OUCT,"+str(intFCITC_list[1])+",,,,,,OUC,FPC,01/00/1900 23:00,01/00/1900 24:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 0:00,01/00/1900 1:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 1:00,01/00/1900 2:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 2:00,01/00/1900 3:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 3:00,01/00/1900 4:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 4:00,01/00/1900 5:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 5:00,01/00/1900 6:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 6:00,01/00/1900 7:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 7:00,01/00/1900 8:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 8:00,01/00/1900 9:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 9:00,01/00/1900 10:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 10:00,01/00/1900 11:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 11:00,01/00/1900 12:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 12:00,01/00/1900 13:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 13:00,01/00/1900 14:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 14:00,01/00/1900 15:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 15:00,01/00/1900 16:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 16:00,01/00/1900 17:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 17:00,01/00/1900 18:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 18:00,01/00/1900 19:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 19:00,01/00/1900 20:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 20:00,01/00/1900 21:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 21:00,01/00/1900 22:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 22:00,01/00/1900 23:00"
x = "OUCT,"+str(intFCITC_list[2])+",,,,,,OUC,FPC,01/00/1900 23:00,01/00/1900 24:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 0:00,01/00/1900 1:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 1:00,01/00/1900 2:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 2:00,01/00/1900 3:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 3:00,01/00/1900 4:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 4:00,01/00/1900 5:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 5:00,01/00/1900 6:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 6:00,01/00/1900 7:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 7:00,01/00/1900 8:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 8:00,01/00/1900 9:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 9:00,01/00/1900 10:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 10:00,01/00/1900 11:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 11:00,01/00/1900 12:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 12:00,01/00/1900 13:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 13:00,01/00/1900 14:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 14:00,01/00/1900 15:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 15:00,01/00/1900 16:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 16:00,01/00/1900 17:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 17:00,01/00/1900 18:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 18:00,01/00/1900 19:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 19:00,01/00/1900 20:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 20:00,01/00/1900 21:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 21:00,01/00/1900 22:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 22:00,01/00/1900 23:00"
x = "OUCT,"+str(intFCITC_list[3])+",,,,,,OUC,FPC,01/00/1900 23:00,01/00/1900 24:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 0:00,01/00/1900 1:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 1:00,01/00/1900 2:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 2:00,01/00/1900 3:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 3:00,01/00/1900 4:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 4:00,01/00/1900 5:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 5:00,01/00/1900 6:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 6:00,01/00/1900 7:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 7:00,01/00/1900 8:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 8:00,01/00/1900 9:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 9:00,01/00/1900 10:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 10:00,01/00/1900 11:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 11:00,01/00/1900 12:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 12:00,01/00/1900 13:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 13:00,01/00/1900 14:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 14:00,01/00/1900 15:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 15:00,01/00/1900 16:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 16:00,01/00/1900 17:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 17:00,01/00/1900 18:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 18:00,01/00/1900 19:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 19:00,01/00/1900 20:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 20:00,01/00/1900 21:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 21:00,01/00/1900 22:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 22:00,01/00/1900 23:00"
x = "OUCT,"+str(intFCITC_list[4])+",,,,,,OUC,FPC,01/00/1900 23:00,01/00/1900 24:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 0:00,01/00/1900 1:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 1:00,01/00/1900 2:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 2:00,01/00/1900 3:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 3:00,01/00/1900 4:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 4:00,01/00/1900 5:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 5:00,01/00/1900 6:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 6:00,01/00/1900 7:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 7:00,01/00/1900 8:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 8:00,01/00/1900 9:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 9:00,01/00/1900 10:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 10:00,01/00/1900 11:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 11:00,01/00/1900 12:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 12:00,01/00/1900 13:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 13:00,01/00/1900 14:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 14:00,01/00/1900 15:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 15:00,01/00/1900 16:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 16:00,01/00/1900 17:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 17:00,01/00/1900 18:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 18:00,01/00/1900 19:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 19:00,01/00/1900 20:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 20:00,01/00/1900 21:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 21:00,01/00/1900 22:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 22:00,01/00/1900 23:00"
x = "OUCT,"+str(intFCITC_list[5])+",,,,,,OUC,FPL,01/00/1900 23:00,01/00/1900 24:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 0:00,01/00/1900 1:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 1:00,01/00/1900 2:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 2:00,01/00/1900 3:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 3:00,01/00/1900 4:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 4:00,01/00/1900 5:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 5:00,01/00/1900 6:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 6:00,01/00/1900 7:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 7:00,01/00/1900 8:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 8:00,01/00/1900 9:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 9:00,01/00/1900 10:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 10:00,01/00/1900 11:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 11:00,01/00/1900 12:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 12:00,01/00/1900 13:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 13:00,01/00/1900 14:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 14:00,01/00/1900 15:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 15:00,01/00/1900 16:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 16:00,01/00/1900 17:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 17:00,01/00/1900 18:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 18:00,01/00/1900 19:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 19:00,01/00/1900 20:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 20:00,01/00/1900 21:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 21:00,01/00/1900 22:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 22:00,01/00/1900 23:00"
x = "OUCT,"+str(intFCITC_list[6])+",,,,,,OUC,FPL,01/00/1900 23:00,01/00/1900 24:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 0:00,01/00/1900 1:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 1:00,01/00/1900 2:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 2:00,01/00/1900 3:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 3:00,01/00/1900 4:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 4:00,01/00/1900 5:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 5:00,01/00/1900 6:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 6:00,01/00/1900 7:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 7:00,01/00/1900 8:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 8:00,01/00/1900 9:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 9:00,01/00/1900 10:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 10:00,01/00/1900 11:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 11:00,01/00/1900 12:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 12:00,01/00/1900 13:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 13:00,01/00/1900 14:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 14:00,01/00/1900 15:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 15:00,01/00/1900 16:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 16:00,01/00/1900 17:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 17:00,01/00/1900 18:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 18:00,01/00/1900 19:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 19:00,01/00/1900 20:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 20:00,01/00/1900 21:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 21:00,01/00/1900 22:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 22:00,01/00/1900 23:00"
x = "OUCT,"+str(intFCITC_list[7])+",,,,,,OUC,FPL,01/00/1900 23:00,01/00/1900 24:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 0:00,01/00/1900 1:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 1:00,01/00/1900 2:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 2:00,01/00/1900 3:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 3:00,01/00/1900 4:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 4:00,01/00/1900 5:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 5:00,01/00/1900 6:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 6:00,01/00/1900 7:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 7:00,01/00/1900 8:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 8:00,01/00/1900 9:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 9:00,01/00/1900 10:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 10:00,01/00/1900 11:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 11:00,01/00/1900 12:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 12:00,01/00/1900 13:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 13:00,01/00/1900 14:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 14:00,01/00/1900 15:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 15:00,01/00/1900 16:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 16:00,01/00/1900 17:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 17:00,01/00/1900 18:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 18:00,01/00/1900 19:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 19:00,01/00/1900 20:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 20:00,01/00/1900 21:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 21:00,01/00/1900 22:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 22:00,01/00/1900 23:00"
x = "OUCT,"+str(intFCITC_list[8])+",,,,,,OUC,FPL,01/00/1900 23:00,01/00/1900 24:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 0:00,01/00/1900 1:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 1:00,01/00/1900 2:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 2:00,01/00/1900 3:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 3:00,01/00/1900 4:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 4:00,01/00/1900 5:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 5:00,01/00/1900 6:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 6:00,01/00/1900 7:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 7:00,01/00/1900 8:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 8:00,01/00/1900 9:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 9:00,01/00/1900 10:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 10:00,01/00/1900 11:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 11:00,01/00/1900 12:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 12:00,01/00/1900 13:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 13:00,01/00/1900 14:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 14:00,01/00/1900 15:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 15:00,01/00/1900 16:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 16:00,01/00/1900 17:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 17:00,01/00/1900 18:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 18:00,01/00/1900 19:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 19:00,01/00/1900 20:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 20:00,01/00/1900 21:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 21:00,01/00/1900 22:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 22:00,01/00/1900 23:00"
x = "OUCT,"+str(intFCITC_list[9])+",,,,,,OUC,FPL,01/00/1900 23:00,01/00/1900 24:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 0:00,01/00/1900 1:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 1:00,01/00/1900 2:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 2:00,01/00/1900 3:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 3:00,01/00/1900 4:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 4:00,01/00/1900 5:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 5:00,01/00/1900 6:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 6:00,01/00/1900 7:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 7:00,01/00/1900 8:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 8:00,01/00/1900 9:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 9:00,01/00/1900 10:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 10:00,01/00/1900 11:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 11:00,01/00/1900 12:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 12:00,01/00/1900 13:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 13:00,01/00/1900 14:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 14:00,01/00/1900 15:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 15:00,01/00/1900 16:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 16:00,01/00/1900 17:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 17:00,01/00/1900 18:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 18:00,01/00/1900 19:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 19:00,01/00/1900 20:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 20:00,01/00/1900 21:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 21:00,01/00/1900 22:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 22:00,01/00/1900 23:00"
x = "OUCT,"+str(intFCITC_list[10])+",,,,,,OUC,FPL,01/00/1900 23:00,01/00/1900 24:00"

You need to pass a second parameter to the open function which will declare the mode that you're opening the file in. Default (no parameter as in your case) is read mode or 'r'. You want either write or append depending on if you want to wipe the file clean each time you open it or not.

Your open command should look like this (and also here's an example of writing to the file):

f = open('my_file.txt', 'w') # Write mode
f.write('This is some text to write.\n') # \n is newline character
f.write('Here we have more text.\n')
f.close()

HTH

Beware of the '\'. You should write

textfile = file('C:\\HourlyATC\\ATC101509\\10-15-09 to 10-21-09 ATC.txt','w') # \\ and 'w'

or you can reverse the slash like such
C:/HourlyATC/ etc

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.