Implemented unlimited size file writing.