Read from a file, falling back to stdin.