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
Translate this page: