Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: richardson@evansville.edu
Date: Wed, 25 Apr 2001 00:30:22 GMT
Message-ID: <20010425.302209@ar63pc.cecs.evansville.edu>
Subject: Re: CYGWIN file structure
To: James Bergstrom <bergstro@eng.utah.edu>, cygwin@sources.redhat.com
Reply-To: richardson@evansville.edu
In-Reply-To: <Pine.4.10.10104241734050.2421-100000@lab3-3.eng.utah.edu>
References: <Pine.4.10.10104241734050.2421-100000@lab3-3.eng.utah.edu>
X-Mailer: Mozilla/3.0 (compatible; StarOffice/5.2;Win32)
X-Priority: 3 (Normal)
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id UAA11624

There are a number of Unix/cygwin system routines for reading directory
entries (filenames) – opendir, readdir, closedir for example.

It sounds as if, for your problem, the scandir routine may be the
easiest to use.  Get a good book on Unix system programming or refer
to the man pages on a Linux box.  (The Linux man page re scandir has
an example that is particularly helpful.)  Good luck!

Tony Richardson

>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 4/24/2001, 6:40:02 PM, James Bergstrom <bergstro@eng.utah.edu> wrote 
regarding CYGWIN file structure:


> We are writing a driver in CYGWIN to read an image file from a directory
> on the hard disk.  The files are placed there every few seconds by a
> webcam, and they are named "image1.tif", "image2.tif", etc.  We know the
> directory they are in, and we know that they are named "image[num].tif",
> but we are having trouble finding utilities to examine filenames in
> cygwin.

> Can you help (our senior project is due thursday morning)


> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

