Lisez l'intégralité du fichier texte à l'aide de la fonction read ()

# Program to read the entire file using read() function
file = open("python.txt", "r")
content = file.read()
print(content)
file.close()


# Program to read the entire file (absolute path) using read() function
file = open("C:/Projects/Tryouts/python.txt", "r")
content = file.read()
print(content)
file.close()
Gorgeous Gazelle