File input handling for domain infile