s-news
[Top] [All Lists]

Re: Checking existing files

To: takashi.ohtani@gs.com
Subject: Re: Checking existing files
From: Peter Anthoni <panthoni@bgc-jena.mpg.de>
Date: Fri, 14 Dec 2001 12:58:57 +0100
Cc: s-news@lists.biostat.wustl.edu
Organization: Max-Planck-Institut f. Biogeochemie, Jena
References: <200112141125.FAA02108@wubios.wustl.edu>
Hi Takashi Ohtani,

In Splus 3.3 for windows running on Windows NT 
the following worked

    sfile <- dos(paste("cmd /C dir /b ",path,name,sep=""))
    fexists <- l(sfile) == 1

where path is the path to the file eg. c:\\directory\\ and name is the
name of the file.

Hope it might work for Splus2000 or it might be easy to convert it.

cheers
Peter 

-- 

----------------------------------------------------------
Peter Anthoni, Ph.D.
MPI for Biogeochemie
Carl-Zeiss Promenade 10
D-07745 Jena
phone: +49 (0) 3641 643738
fax: +49 (0) 3641 643710
email: panthoni@bgc-jena.mpg.de
----------------------------------------------------------

<Prev in Thread] Current Thread [Next in Thread>
  • Re: Checking existing files, Peter Anthoni <=