Truncate file after writing DataContainer to it