Fix open file handler in outcar.