• I Cast Fist@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    24 days 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