Hands-on 8b

Communication with the Outside World

Passing a filename from the command line to an executable

  • We will extend the program readNuclei.cxx developed in session7; you can start from your program (if it is working fine) or take session7-solution.tar.gz. See in the previous session how to compile the program.

  • Let the program check if it is called with at least one parameter, and in this case consider the first parameter as a file name of the nuclei data file. If not, the program will be looking for data in the default nuclei.txt.

  • Test the program with both data files provided.