Summary

  • Stream is a representation of flow of data from one side to another e.g. from disk to memory and from memory to diskBuffer is used to hold stream data temporarily.
  • File is a representation to store data on disk file.
  • File uses streams to store and load data.

Nice tutorial about the Python file: https://www.knowledgehut.com/tutorials/python-tutorial/python-file-io