Difference between revisions of "StdIn"

From Xojo Documentation

m (See Also)
 
Line 29: Line 29:
  
 
<rbcode>
 
<rbcode>
Dim s As String
+
Var s As String
 
s = StdIn.ReadLine
 
s = StdIn.ReadLine
 
</rbcode>
 
</rbcode>

Latest revision as of 00:37, 30 July 2019

Method

Retrieves the global reference to the standard input stream, used in ConsoleApplications.

Syntax

result=StdIn

Part Type Description
result StandardInputStream The standard input stream is typically the keyboard as used for the Terminal application.

It could be a file, serial control, socket or other such input device on some systems.

Example

Gets the input after the user presses return:

Var s As String
s = StdIn.ReadLine

See Also

ConsoleApplication, StandardInputStream, StandardOutputStream classes; TargetDesktop constant; Input, Print, StdOut, StdErr methods; Readable class interface.