delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/04/24/20:47:50

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Tue, 24 Apr 2001 20:30:49 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin AT cygwin DOT com
Cc: bergstro AT eng DOT utah DOT edu
Subject: Re: CYGWIN file structure
Message-ID: <20010424203049.A22034@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com, bergstro AT eng DOT utah DOT edu
References: <Pine DOT 4 DOT 10 DOT 10104061219090 DOT 859-100000 AT lab3-7 DOT eng DOT utah DOT edu> <Pine DOT 4 DOT 10 DOT 10104241734050 DOT 2421-100000 AT lab3-3 DOT eng DOT utah DOT edu>
Mime-Version: 1.0
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019