From owner-freebsd-questions Thu Aug 1 8:29:45 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA31C37B443 for ; Thu, 1 Aug 2002 08:29:22 -0700 (PDT) Received: from mailout5.nyroc.rr.com (mailout5-1.nyroc.rr.com [24.92.226.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAA2C43E65 for ; Thu, 1 Aug 2002 08:29:21 -0700 (PDT) (envelope-from met@uberstats.com) Received: from SURVIVAL (rrcs-nys-24-97-200-196.biz.rr.com [24.97.200.196]) by mailout5.nyroc.rr.com (8.11.6/RoadRunner 1.20) with ESMTP id g71FTBL29510 for ; Thu, 1 Aug 2002 11:29:19 -0400 (EDT) From: "MET" To: Subject: Slightly off topic - C++ Date: Thu, 1 Aug 2002 11:33:50 -0400 Message-ID: <001001c23970$dae6e2c0$6901a8c0@SURVIVAL> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0011_01C2394F.53D542C0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_0011_01C2394F.53D542C0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Anybody know where I might find a good tutorial or something on directory/file browsing in C++. I'm trying to write a program that backs up MySQL databases, quite a few, and keeps track of them by not letting the backups exceed a certain number. Naturally this would be done by deleting files that are X amount of days/weeks old. However, to do this I need to be able to scan all the files in a specific directory and then obtain information on when they were created/modified. I know there are Perl programs that do this, but I'd rather do it myself ~ its a learning experience. - Matthew /************************************************************** Matthew Metnetsky met@uberstats.com **************************************************************/ ------=_NextPart_000_0011_01C2394F.53D542C0 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Message
Anybody know where I might find a good tutorial or = something on=20 directory/file browsing in C++.  I'm trying to write a program that = backs=20 up MySQL databases, quite a few, and keeps track of them by not letting = the=20 backups exceed a certain number.  Naturally this would be done by = deleting=20 files that are X amount of days/weeks old.  However, to do this I = need to=20 be able to scan all the files in a specific directory and then obtain=20 information on when they were created/modified.
 
I=20 know there are Perl programs that do this, but I'd rather do it myself ~ = its a=20 learning experience.
 
 
-=20 Matthew
 
 
/**************************************************************
 
     =20 Matthew Metnetsky
 
      met@uberstats.com
 
**************************************************************/
------=_NextPart_000_0011_01C2394F.53D542C0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message