help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'System' (#rtl)

ReadLn

Read from a text file into variable and goto next line

Declaration

Source position: line 0

procedure ReadLn(

  var F: Text;

  Args: Arguments

);

procedure ReadLn(

  Args: Arguments

);

Description

Read reads one or more values from a file F, and stores the result in V1, V2, etc. After that it goes to the next line in the file. The end of the line is marked by the LineEnding character sequence (which is platform dependent). The end-of-line marker is not considered part of the line and is ignored.

If no file F is specified, then standard input is read. The variables V1, V2 etc. must be of type Char, Integer, Real, String or PChar.

For an example, see Read.

Errors

If no data is available, a run-time error is generated. This behavior can be controlled with the \var{\{\$i\}} compiler switch.

See also

Read

  

Read from a text file into variable

Blockread

  

Read data from an untyped file into memory

Write

  

Write variable to a text file

Blockwrite

  

Write data from memory to an untyped file

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505