Implement read/write streams and open/read/close