Google Drive file I/O with Colab Jupyter notebooks
A minimal working example.
Instructions
Place the Jupyter notebook in your Google Drive.
In Google Drive in your web browser, open the Jupyter notebook with Colaboratory.
Run the cells in this notebook to mount the drive and practice reading & writing files.
Notes
In this example, input.txt is a file in the top-level directory of my Google Drive.
You can append sub-directories to the path as needed. E.g. to access a file in a directory called my_project, use the path /content/gdrive/My Drive/my_project/.