It will always give you one more line if the EOF is present.
----- Original Message -----
From: "Bill Downall" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Tuesday, July 06, 2010 5:58 PM
Subject: [RBASE-L] - re: line count in ascii file
Luc,
SET VAR vAsciiFileName TEXT = 'MyFile.txt'
SET VAR vNumberOfLines INTEGER = NULL
DROP TABLE LinesOfText
CREATE TEMP TABLE LinesOfText (LineOfText TEXT (200) )
LOAD LinesOfText FROM .vAsciiFileName AS FORMATTED USING LineOfText 1 200
SELECT COUNT (*) INTO vNumberOfLines FROM LinesOfText
Bill
On Tue, Jul 6, 2010 at 5:47 PM, Luc Delcoigne
<[email protected]>wrote:
Hi,
Is there a simple way/command in R:base to count the lines in a ascii
file
?
Thanks,
Luc delcoigne