Method

# Input

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

Retrieves a line from the terminal in console applications.

## Usage

``` xojo
result = Input
```

| Part   | Type                             | Description                                                                                                                           |
|--------|----------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|
| result | `String</api/data_types/string>` | The line retrieved from the terminal. <span class="title-ref">Input</span> does not return the Newline character as part of *result*. |

## Notes

<span class="title-ref">Input</span> is equivalent to a call to the `ReadLine<standardinputstream.readline>` method of the `StandardInputStream</api/console/standardinputstream>` class.

## Sample code

``` xojo
Var s As String
s = Input
```

## Compatibility

|                       |              |
|-----------------------|--------------|
| **Project Types**     | Console, Web |
| **Operating Systems** | All          |

<div class="seealso">

`ConsoleApplication</api/console/consoleapplication>`, `StandardInputStream</api/console/standardinputstream>`, `StandardOutputStream</api/console/standardoutputstream>` classes; `Print</api/console/print>`, `StdIn</api/console/stdin>` methods; `TargetConsole</api/compiler_directives/targetconsole>` constant.

</div>
