Command line and file reading