in reply to Problem truncating a huge file
File that you're truncating should be opened for writing.