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

  • RonSijm@programming.dev
    link
    fedilink
    arrow-up
    9
    ·
    2 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”