in reply to Problem truncating a huge file

File that you're truncating should be opened for writing.

Replies are listed 'Best First'.
Re^2: Problem truncating a huge file
by abhishek_akj (Initiate) on Aug 27, 2009 at 11:40 UTC
    The file is opened in Read-Write Mode, and I am able to successfully write to the file as well, it is truncate which is giving me error.