Implemented file open, read and close.