This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)
[an error occurred while processing this directive] $Input

  • $Input is a global variable whose value is the name of the stream from which input to Mathematica is currently being sought.
  • During the execution of << file, $Input is set to " file ".
  • During interactive input, $Input is "".
  • See the Mathematica book: Section 2.11.4Section 2.13.1.
  • See also: Get, Streams, DirectoryName, ToFileName, $BatchInput, $ParentLink.