Under the Hood: “Slurping” and Streaming Files in Ruby
In Ruby Magic #14, we’ll look into the difference between “slurping” and streaming files in Ruby. Along the way, we’ll learn about I/O, and how Ruby reads files line by line without slurping the whole file content into memory.
Post a comment