In.inputChar? What's that. At any rate, a stdin that realy comes from a file should be the same in all ways as a file you opened.