Separate file read/write operation abstraction from agent side codes.