initialization of variable "file" was missing.