[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Read variables from a string
Source position: system.fpd line 61
procedure ReadStr( |
const S: String; |
Args: Arguments |
); |
ReadStr behaves like Read, except that it reads its input from the string variable S instead of a file. Semantically, the ReadStr call is equivalent to writing the string to a file using the Write call, and then reading them into the various arguments Arg using the Read call from the same file:
var F : Text; begin Rewrite(F); Write(F,S); Close(F); Reset(F); Read(F,Args); Close(F); end;
Obviously, the ReadStr call does not use a temporary file.
ReadStr is defined in the ISO Extended Pascal standard. More information on the allowed arguments and the behaviour of the arguments can be found in the description of Read.
|
Read from a text file into variable |
|
|
Write variables to a string |
|
|
Write variable to a text file |
lazarus-ccr.sourceforge.net |