Reading a Whole File at Once (slurp) These two functions load an entire text and a binary file into memory, avoiding some common pitfalls. Click here to read the article