now this is pseudo-code, so don't bash me here! if $element(@beginning_file) doesn't exist in @next_file Print something to STDOUT that I will define later. AND if $element(@next_file) doesn't exist in @beginning_file Print something else to STDOUT that I will define later