file opening through command-line arguments