1.put() and get() functions handle single character at a time.
2.write() and read() functions write and read blocks of binary data.