Use truncation on file create to avoid leaving trailing garbage
Merge pull request #22 from larsbergstrom/create_mode

Use truncation on file create to avoid leaving trailing garbage