var iRowCount : integer; F : TextFile; begin ... { read row count } try iRowCount := 0; AssignFile( F, EPath.Text + s.Name ); Reset( F ); while not EOF( F ) do begin readln( F, sText ); inc( iRowCount ); end; ... finally CloseFile( F ); end; ...
Microsoft AX 2012, X++, C#, SQL server, SSRS, Java, JavaFX, Oracle, PL/SQL, Delphi - codes examples, step-by-step tutorials, experiences.
Showing posts with label delphi - readln(). Show all posts
Showing posts with label delphi - readln(). Show all posts
Friday, March 2, 2018
DELPHI - How get row count in text file
Subscribe to:
Posts (Atom)