Added file reader and writer

- Buffered file writer is truncating the entire file when opening.
Should FileLock be continued to be used or stick to buffered writer?