f = open('temp.txt', 'w')
lines = ['line {}\n'.format(i) for i in range(10)]
f.writelines(lines)
f.close()
f = open('temp.txt', 'r+')
f.seek(7)
line = f.readline()
print(line)
f.write('new line')
f.close()
f = open('temp.txt', 'r')
print(f.read())
f.close()

b2e7769291a33ab1a1b22330dbd76fa37ea36b13
<mask token>

<mask token>
f.writelines(lines)
f.close()
<mask token>
f.seek(7)
<mask token>
print(line)
f.write('new line')
f.close()
<mask token>
print(f.read())
f.close()

f = open('temp.txt', 'w')
lines = ['line {}\n'.format(i) for i in range(10)]
f.writelines(lines)
f.close()
f = open('temp.txt', 'r+')
f.seek(7)
line = f.readline()
print(line)
f.write('new line')
f.close()
f = open('temp.txt', 'r')
print(f.read())
f.close()
