s-news
[Top] [All Lists]

Re: reading and writing the same file

To: "Leeds, Mark" <mleeds@mlp.com>
Subject: Re: reading and writing the same file
From: Prof Brian Ripley <ripley@stats.ox.ac.uk>
Date: Sun, 26 Oct 2003 21:41:28 +0000 (GMT)
Cc: s-news@wubios.wustl.edu
In-reply-to: <37DA35FDF352A24AB931404B856180FA012C74@MAIL002.AD.MLP.COM>
On Sun, 26 Oct 2003, Leeds, Mark wrote:

> does anyone know if it is possible to read and write from a file ( table
> ) inside
> the same Splus program. In other words, can I use write.table and
> read.table using the same file in the same program ? My guess is NO.

YES in current S-PLUS (>= 5, I guess).

file() connections can be opened for reading and writing, and using 
anonymous files (just file()) is pointless unless you do that.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


<Prev in Thread] Current Thread [Next in Thread>