Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)


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


  • During the execution of <<file, $Input is set to .
  • During interactive input, $Input is .

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Loading a file:

Click for copyable input

During interactive input, $Input is :

Click for copyable input
Introduced in 1991