From Clomosy Docs
ClomosyAdmin (talk | contribs) No edit summary |
ClomosyAdmin (talk | contribs) No edit summary |
||
| Line 28: | Line 28: | ||
<h2> See Also </h2> | <h2> See Also </h2> | ||
* [[File_Handling | File Handling]] | * [[File_Handling | File Handling]] | ||
{{#seo:|title=ReadLn Using in Clomosy - Clomosy Docs}} | |||
{{#seo:|description=Use the ReadLn procedure in Clomosy to efficiently read lines from a file in read mode using Reset.}} | {{#seo:|description=Use the ReadLn procedure in Clomosy to efficiently read lines from a file in read mode using Reset.}} | ||
Latest revision as of 14:24, 24 December 2024
procedure ReadLn(var FileHandle TextFile; const Expression1 string);
It is a procedure used to read a line from a file.
You must open the file in read mode to read it. Reset
Example
var
file1 : TextFile;
{
if (clFileExists('file.txt'))
{
AssignFile(file1, 'file.txt');
Reset(file1);
while (not Eof(file1))
{
ReadLn(file1);
}
}
}