This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / System Interface / Mathematica Sessions /

$Input

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

FilledSmallSquare During the execution of <<file, $Input is set to "file".

FilledSmallSquare During interactive input, $Input is "".

FilledSmallSquare See Section 2.12.4 and Section 2.14.1.

FilledSmallSquare See also: Get, Streams, DirectoryName, ToFileName, $BatchInput, $ParentLink.

FilledSmallSquare New in Version 2.