This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: CYGWIN file structure
- To: James Bergstrom <bergstro at eng dot utah dot edu>,cygwin at sources dot redhat dot com
- Subject: Re: CYGWIN file structure
- From: richardson at evansville dot edu
- Date: Wed, 25 Apr 2001 00:30:22 GMT
- References: <Pine.4.10.10104241734050.2421-100000@lab3-3.eng.utah.edu>
- Reply-To: richardson at evansville dot edu
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