$file should be $this->file

not that i can actually see anyone using this in a real script...