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 of System.Console.ReadLine().
  • On Java readLn() is the equivalent of system.console().readLine().
  • On Cocoa and Island readLn(x) falls back to a internal helper function implemented in libToffee and Island RTLthat uses the getchar() API.

See Also

Version Notes