• I Cast Fist
      link
      fedilink
      arrow-up
      4
      ·
      13 hours 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