command line arguments, read/write mode