File size

 BBS: Inland Empire Archive
Date: 04-17-92 (14:28)             Number: 167
From: JIM BREWER                   Refer#: NONE
  To: ZACK JONES                    Recvd: NO  
Subj: File size                      Conf: (2) Quik_Bas
-> I know LOF shows the size in bytes.  What I want to know is how many
-> lines there are in an ASCII text file that I open.  I

        A way to do this is to open the file as binary and
read in so many K chunks of the file at a time and use
INSTR$ to count CR/LF pairs.

        Let me know if you want to see the code and I will
look harder for it (can't seem to find it right now).

                                          Jim Brewer

--- DB B1065/002487
 * Origin: Gulf Coast BBS -QuickSHARE #2- (904)563-2547 HST/V.32bis (1:365/12)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET