$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.

Details

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

Examples

Basic Examples  (2)

Loading a file:

During interactive input, $Input is "":

Wolfram Research (1991), $Input, Wolfram Language function, https://reference.wolfram.com/language/ref/$Input.html.

Text

Wolfram Research (1991), $Input, Wolfram Language function, https://reference.wolfram.com/language/ref/$Input.html.

CMS

Wolfram Language. 1991. "$Input." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$Input.html.

APA

Wolfram Language. (1991). $Input. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$Input.html

BibTeX

@misc{reference.wolfram_2024_$input, author="Wolfram Research", title="{$Input}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/$Input.html}", note=[Accessed: 12-October-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_$input, organization={Wolfram Research}, title={$Input}, year={1991}, url={https://reference.wolfram.com/language/ref/$Input.html}, note=[Accessed: 12-October-2024 ]}