im writing this function to read from a file and write to another output file, but i recieve no output. Did I write these functions correctly? if they are correct the problem lies within the main body of the decode function, which i will try and sort out.
the code:
def ReadFile():                                                                 #Reads data from file
    try:
        count=0
        stringvar=INFILE.open("K:\Data.txt","r")
        for line in INFILE:
            mylist.append(line.rstrip())
            count+=1
        INFILE.close()
        return count
    except:
        print("File could not be found")
        exit()
writing output file code:
def WriteFile(outlist):                             #outputs data to output list
    OUTFILE=open("Output.txt","a")
    for details in outlist:
        OUTFILE.write(details+"/n")
        parselist.append(a+": Was issued by " +b+ " in "+c+".""The card expires on "+d1+"/"+d2+".The card i linked to" +e+ "with account number:" +f)
    OUTFILE.close()
Is there any problem with the code above?
if it will help i will post the whole code ive written.
 
    