# f = open('file.txt', 'r', encoding='utf-8')
# text = f.read(2)
# text2 = f.read(8)
# print(f.encoding)
# text = f.read()
# f.close()
#
# print(text)
# print(text2)

# f = open('file.txt', 'a', encoding='utf-8')
# f.write('New string\n')
# f.close()

# lines = ['New string1', 'New string2']
# f = open('file.txt', 'a', encoding='utf-8')
# for line in lines:
#     f.write(line + '\n')
# f.writelines(lines)
# f.writelines(f'{line}\n' for line in lines)
# f.close()

# f = open('file.txt', 'r', encoding='utf-8')
# for line in f:
#     print(line.replace('\n', ''))
#     print(line, end='')
# f.close()

# f = open('file1.txt', 'w', encoding='utf-8')
# f.close()


