$Input

$Input
is a global variable whose value is the name of the stream from which input to the Wolfram Language is currently being sought.

DetailsDetails

  • During the execution of <<file, $Input is set to .
  • During interactive input, $Input is .
Introduced in 1991
(2.0)