Thanks a lot, Bill....

You wouldn't by chance have any ideas how to get the text of my VARCHAR field 
into the ascii file as txt ?

I 've been trying to do this all day long....Haven't got a clue...other than to 
purchase the RRTFtoTXT plug in ?

Goodnight, 

Luc Delcoigne


From: Bill Downall 
Sent: Tuesday, July 06, 2010 11:58 PM
To: RBASE-L Mailing List 
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


Reply via email to