From: Yong Li Date: 2011-12-31T10:28:09+09:00 Subject: Re: output file from variable Beside what Peter has described, one more hint: you probably need to close your file before calling the rename method. You can close your file by calling x.close