how to use a file in python code example
Example 1: how to reference a file in python
with open("filename.txt","r") as f:
contents = f.read()
Example 2: how to open a file in python
open("filename" , "mode")
# do whatever you want to do!!
Example 3: how to open a file in python
f = open("demofile.txt")