|more useful options|
Re: problems with truncate functionby tobias_hofer (Friar)
|on Jun 26, 2013 at 07:59 UTC||Need Help??|
I gave a try with a simple file and it works fine.
You truncate to 0, means your file will be empty afterwards.
if size, 0 in your case, is greater than the files length then the behavior is undefined.
Means you got to have some content in your file. Do you have content in your file?