egh... i had a lot of fun writing a class to read and deserialize a binary file with fread and templates... but now i need to read a textfile and it's horrible...
you dont know how long each line is... use getline? will you slurp the file in one go? but then you need to know how large to make your buffer..... use an arbitrary buffersize and read in multiple gulps? resize targetbuffer midread? can the >> operator save you? process every character on its own? use scanf? regex?
(map |(peg/match my-peg $0)
(string/split "\n"
(slurp "fuckme.txt")))
i just want to peg some text, not handle files and other icky stuff deep sigh