Refactoring: more readable
fillBuffer() function
getFileSize(const char* filename)
more readable