reading the input file, or the standard input