file output supports truncate, or not