Python - Read A File

This simple code snippet shows how to open and read a file.
  1. file = open("file.txt")  
  2. print(file.read()) 

No comments:

Post a Comment