Replaced truncate() call with boost::filesystem::resize_file().
Replaced truncate() call with boost::filesystem::resize_file().

This is available on Windows, whereas truncate is not.

hradec/cortex,appleseedhq/cortex,hradec/cortex,lento/cortex,lento/cortex,appleseedhq/cortex,lento/cortex,goddardl/cortex,goddardl/cortex,goddardl/cortex,hradec/cortex,appleseedhq/cortex