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
Date: Tue, 24 Apr 2001 20:30:49 -0400
From: Christopher Faylor <cgf@redhat.com>
To: cygwin@cygwin.com
Cc: bergstro@eng.utah.edu
Subject: Re: CYGWIN file structure
Message-ID: <20010424203049.A22034@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com, bergstro@eng.utah.edu
References: <Pine.4.10.10104061219090.859-100000@lab3-7.eng.utah.edu> <Pine.4.10.10104241734050.2421-100000@lab3-3.eng.utah.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.11i
In-Reply-To: <Pine.4.10.10104241734050.2421-100000@lab3-3.eng.utah.edu>; from bergstro@eng.utah.edu on Tue, Apr 24, 2001 at 05:40:02PM -0600

On Tue, Apr 24, 2001 at 05:40:02PM -0600, James Bergstrom wrote:
>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)

If I am understanding what you are asking for, I think you need to
investigate opendir and readdir.

These are UNIX functions.  You can find them documented here:
http://www.opengroup.org/onlinepubs/7908799/index.html

The alternative is to use Windows native functions like
FindFirstFile and FindNextFile.

They would be documented here:
http://msdn.microsoft.com/library/default.asp

cgf

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

