Add -c option to specify write content.
Fix output format of read data.