• graham1
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 year ago

    Is it intentional to have so many filesystem interactions and subprocess launches?

      • I Cast Fist@programming.dev
        link
        fedilink
        arrow-up
        6
        ·
        1 year ago

        I guess the obvious question now is “why”? From a glance, it’s pretty clear that one of the things that you really should’ve done is separated the file reading/writing into separate functions, instead of having every function open-read-write cat.txt

        • igor360OP
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          hmmm… okay! i think i know how to do it!

        • igor360OP
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          okay! its done! can you upgrade my game?