add whole file vs buffered I/O version