| www.delorie.com/archives/browse.cgi | search |
| 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 |
| From: | richardson AT evansville DOT 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 AT eng DOT utah DOT edu>, cygwin AT sources DOT redhat DOT com |
| Reply-To: | richardson AT evansville DOT edu |
| In-Reply-To: | <Pine.4.10.10104241734050.2421-100000@lab3-3.eng.utah.edu> |
| References: | <Pine DOT 4 DOT 10 DOT 10104241734050 DOT 2421-100000 AT lab3-3 DOT eng DOT utah DOT edu> |
| X-Mailer: | Mozilla/3.0 (compatible; StarOffice/5.2;Win32) |
| X-Priority: | 3 (Normal) |
| MIME-Version: | 1.0 |
| 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 AT eng DOT utah DOT 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |