readLn()
Analogous to writeLn()
, the Pascal-classic readLn()
system function is available for reading a line of input from the console. The function blocks and collects characters until a (platform-specific) line-feed or carriage return is received. It then returns the resulting string without the trailing line break.
Platform Equivalents
- On .NET
readLn()
is the equivalent ofSystem.Console.ReadLine()
. - On Java
readLn()
is the equivalent ofsystem.console().readLine()
. - On Cocoa and Island
readLn(x)
falls back to a internal helper function implemented in libToffee and Island RTLthat uses thegetchar()
API.
See Also
Version Notes
- the
readLn()
system function is new in Version 8.3.