In [15]:
connection_to_file_1 = open("draft2.txt", 'w')
In [16]:
connection_to_file_1.write("This is the first draft of a REMARKABLE new bok I am going to write!!")
Out[16]:
In [17]:
connection_to_file_1.read()
In [8]:
type(connection_to_file_1)
Out[8]:
In [10]:
connection_to_file_2 = open("draft.txt")
# Openning a file cabinet drawer
In [11]:
type(connection_to_file_2)
Out[11]:
In [12]:
print(connection_to_file_2)
In [14]:
connection_to_file_2.read()
Out[14]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]: