No. I just modified my program to take the file as an argument instead of forcing it to be through standard input. It's not a big deal for me, but I imagine there are other people who can't or don't want to do that, and would like to find an answer to my question.