clean.py 271 Bytes
Newer Older
Guillaume GENESTIER's avatar
Guillaume GENESTIER committed
1 2 3 4 5 6 7 8 9 10
toRead=open("../temp/erreur.txt",'r')
toFill=open("../temp/grave.txt","a")
v=toRead.read()
if v.find("SUCCESS [")!=-1:
    print(v.split("\n")[1])
else:
    toFill.write(v.split("\n")[0]+" pose probleme\n")
    print(v.split("\n")[1])
toRead.close()
toFill.close()