Opening Files

To open a file use the open( ) method.

fileName = open(‘filename.txt’, ‘file mode’)

When you open a file, put the filename and the file mode in the parameters of the open( ) method.

video

Read page 56 of the textbook “Python for Beginners”.