text_plain_output_1.png
f = open('../input/poetry/Kanye_West.txt')

f.read()

f.close()

f.readline()

f = open('../input/poetry/Kanye_West.txt', encoding='utf-8-sig')

f.close()

f.read(8)

f.read(4)

f.seek(0)

f.close()

f = open('text.txt', mode='w')

f.write('THIS IS MY FIRST LINE')

f.close()

f = open('text.txt')

f.close()

f = open('text.txt', mode='w')

f.write('This is my second line')