output the filename before reading