Это мой код:
1)
Код: Выделить всё
file = open("prova.txt", "r")
content = file.read()
print(content)
file.close()
Код: Выделить всё
with open("prova.txt", encoding="utf-8") as f:
file = f.read()
print(file)
Я хочу прочитать файл на Python
Подробнее здесь: https://stackoverflow.com/questions/787 ... -in-vscode