For context, I am trying to do a save system for a game.

  • @[email protected]
    link
    fedilink
    93 months ago

    Well you need to try and catch when getting the file anyways, it’s probably very rare but imagine a scenario of:

    • Check if file exists
    • user deletes file in between
    • (try) opening the file

    Or the file could exist, but you don’t have permissions to actually open it.

    So a bunch of languages / already have their own “try open file”