Reading orders from commandline argument and output to the file name passed in arguments