read datafiles before processing STDIN