def main():
    myfile = open('textfile.txt', 'r')
    if (myfile.mode == 'r'):
        filelines = myfile.readlines()
        for fileline in filelines:
            print(fileline)
def main():
    myfile = open('textfile.txt', 'r')
    if (myfile.mode == 'r'):
        filelines = myfile.readlines()
        for fileline in filelines:
            print(fileline)