reading from files; command line params and user prompt