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
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 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dus-ascii"> <TITLE>Message</TITLE> <META content=3D"MSHTML 6.00.2716.2200" name=3DGENERATOR></HEAD> <BODY> <DIV><SPAN class=3D980103015-01082002><FONT face=3DVerdana = color=3D#0000ff=20 size=3D2>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.</FONT></SPAN></DIV> <DIV><SPAN class=3D980103015-01082002><FONT face=3DVerdana = color=3D#0000ff=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D980103015-01082002><FONT face=3DVerdana = color=3D#0000ff size=3D2>I=20 know there are Perl programs that do this, but I'd rather do it myself ~ = its a=20 learning experience.</FONT></SPAN></DIV> <DIV><SPAN class=3D980103015-01082002><FONT face=3DVerdana = color=3D#0000ff=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D980103015-01082002><FONT face=3DVerdana = color=3D#0000ff=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D980103015-01082002><FONT face=3DVerdana = color=3D#0000ff size=3D2>-=20 Matthew</FONT></SPAN></DIV> <DIV><SPAN class=3D980103015-01082002><FONT face=3DVerdana = color=3D#0000ff=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D980103015-01082002> <DIV align=3Dleft><SPAN=20 style=3D"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=3Dleft><SPAN=20 style=3D"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">/**************************************************************</S= PAN></DIV> <DIV align=3Dleft><SPAN=20 style=3D"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=3Dleft><SPAN=20 style=3D"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"> =20 Matthew Metnetsky</SPAN></DIV> <DIV align=3Dleft><SPAN=20 style=3D"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=3Dleft><SPAN=20 style=3D"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"> <FONT=20 color=3D#ff0000>met@uberstats.com</FONT></SPAN></DIV> <DIV align=3Dleft><SPAN=20 style=3D"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=3Dleft><SPAN=20 style=3D"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=20 style=3D"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">**************************************************************/</S= PAN></SPAN></DIV></SPAN></DIV></BODY></HTML> ------=_NextPart_000_0011_01C2394F.53D542C0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001001c23970$dae6e2c0$6901a8c0>