file = open('testing.txt') lines = file.readlines() errorinfo = lines[0] if errorinfo == "A": print("Yes you are A!") else: print("No you're not A!")
A B C
file.readlines()
print(lines)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)