Complex sentence: Most of the programs look for the data in a file called "infile"--if they do not find this file they then ask the user to type in the file name of the data file.
Split into simpler sentences: Most of the programs look for the data in a file called "infile". If they do not find this file, they then ask the user to type in the file name of the data file.