Another file method: mmap In case you want to just pretend the file is already in memory Alright, let's do an example: Character counter Pipe stuff in, and it counts occurances of ASCII characters It can also print out a graph, using a command-line argument