Read in a whole file into buffer, using only built-in modules/feautres