Moved file io related code from prophandler to here
Moved file io related code to fileio