Implementing: Reading and writing files
Implementing: Fixed writing not-whole buffer to file