changed command line arguments for part2
Added openFilreRead, openFilewrite to support differnt fstream open modes