Truncate file