Removed the mpi file operations to use the c++ text file operations.