View Single Post
# 1 14-12-2004 , 12:04 AM
Dann's Avatar
Registered User
Join Date: Feb 2003
Location: Los Angeles
Posts: 695

writing a text file

OK, since you all have been so helpful in my endeavours to get my MEL chops up to par, I'm back again with another question.

I'm trying to write out a text file that lists most of the render globals. I've basically got everything working except for one major problem. I've tried using both fwrite and fprint, but they both only seem to append the specified file.What I need to do is either overwrite the file, or erase the file before re-writing it. Anyone have any thoughts on how to do that?

Thanks again,
-dann