Skip to main content
Engineering LibreTexts

10.8: Reading and Writing Text Files

  • Page ID
  • Python has functions for reading files off of the player’s hard drive. This will be useful for having a separate file keep all of the data for each level. This is also a good idea because in order to get new levels, the player doesn’t have to change the source code of the game but instead can just download new level files.

    • Was this article helpful?