Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4095
Number of posts: 14004

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Read how much lines a external files has Posted by Sllad on 26 Jan 2007 at 10:58 AM
how to read how much lines has an txt file. what the title says...
Report
Re: Read how much lines a external files has Posted by Phat Nat on 26 Jan 2007 at 12:28 PM
: how to read how much lines has an txt file. what the title says...
:

VAR
   T : Text;
   NumLines : LongInt;

Begin
     Assign(T,'MyFile.Txt'); Reset(T);
     While Not Eof(T) Do
     Begin
          ReadLn(T);
          Inc(NumLines);
     End;
     Close(T);
End.






 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.