reads lines in file based on command line arg