Python open() built-in function
Python open() built-in function
From the Python 3 documentation Open file and return a corresponding file object. If the file cannot be opened, an OSError is raised. See Reading and Writing Files for more examples of how to use this function.
Examples
f = open("some_file.txt", "r")