in reply to Re: Re: File protection in a called script
in thread File protection in a called script

What does the file contain after the script is finished running? What happens when you run the script from the command-line passing the same arguments? Also, you might want to check the return values of the print and close calls. Those can sometimes fail (although usually not for files) especially if the disk is full.
  • Comment on Re: Re: Re: File protection in a called script