I believe a user should probably make sure that the file isn't nil before this method gets called, otherwise a nil object exception gets called in.
I'm not sure what the alternative should be to 'if file = nil, call nilobjectexception'.
I'll update the changes.