Message-ID: <34gvavkrj9p49tuvhjgnp2l78nmo0vsbcs@4ax.com>
Date: 2003-04-30T12:26:26Z
From: Duncan Murdoch
Subject: Scanning data files line-by-line
In-Reply-To: <Law11-F111cYUhN5HyR00012433@hotmail.com>
On Wed, 30 Apr 2003 11:51:00 +0000, you wrote:
>Hi all, is there a way to read a data file into R line-by-line, akin
>to what fscanf does in C, say?
>
>It seems that "scan" and "read.table" both read the entire data file
>in at once, whereas "readLines" allows one to read a file partially,
>but doesn't quite read line-by-line either.
That's what readLines(con, n=1) is supposed to do; in what way does it
not quite work?
Duncan