Update _file.cpp

Since parameters are illegal in destructors, the keep boolean is set in constructor.