Add open(), read() and write() functions