Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Aug 2002 11:33:50 -0400
From:      "MET" <met@uberstats.com>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   Slightly off topic - C++
Message-ID:  <001001c23970$dae6e2c0$6901a8c0@SURVIVAL>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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
 
**************************************************************/

[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2716.2200" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=980103015-01082002><FONT face=Verdana color=#0000ff 
size=2>Anybody know where I might find&nbsp;a good tutorial or something on 
directory/file browsing in C++.&nbsp; 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.&nbsp; Naturally this would be done by deleting 
files that are X amount of days/weeks old.&nbsp; 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.</FONT></SPAN></DIV>
<DIV><SPAN class=980103015-01082002><FONT face=Verdana color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=980103015-01082002><FONT face=Verdana color=#0000ff size=2>I 
know there are Perl programs that do this, but I'd rather do it myself ~ its a 
learning experience.</FONT></SPAN></DIV>
<DIV><SPAN class=980103015-01082002><FONT face=Verdana color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=980103015-01082002><FONT face=Verdana color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=980103015-01082002><FONT face=Verdana color=#0000ff size=2>- 
Matthew</FONT></SPAN></DIV>
<DIV><SPAN class=980103015-01082002><FONT face=Verdana color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=980103015-01082002>
<DIV align=left><SPAN 
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"></SPAN>&nbsp;</DIV>
<DIV align=left><SPAN 
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">/**************************************************************</SPAN></DIV>
<DIV align=left><SPAN 
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"></SPAN>&nbsp;</DIV>
<DIV align=left><SPAN 
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Matthew Metnetsky</SPAN></DIV>
<DIV align=left><SPAN 
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"></SPAN>&nbsp;</DIV>
<DIV align=left><SPAN 
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT 
color=#ff0000>met@uberstats.com</FONT></SPAN></DIV>
<DIV align=left><SPAN 
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"></SPAN>&nbsp;</DIV>
<DIV align=left><SPAN 
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"><SPAN 
style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">**************************************************************/</SPAN></SPAN></DIV></SPAN></DIV></BODY></HTML>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001001c23970$dae6e2c0$6901a8c0>