I would write out a file that gives the files included in the big .fcgi file as well as their checksums. Then you could check against the database to see if it needs to be updated ( if you will never change an old file, then the checksum is not needed, but be sure to plan ahead!)
Tanton ----- Original Message ----- From: "Martin A. Hansen" <[EMAIL PROTECTED]> To: "Wagner-David" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, February 25, 2002 10:57 AM Subject: Re: appending files > interesting, but no. > > i can download these .fcgi files from a database and they are quite generic (they contains loads of records). all i wanted is to collect all therecords in one big fcgi file for outputting and sorting. but i may download new .fcgi files regularly and i want them included in the big fcgi file as well. however, i dont want to do the include process with each run of the program! > > :) > > > martin > > > On Mon, Feb 25, 2002 at 07:48:07AM -0800, Wagner-David wrote: > > Might be better off using a hash with the filename and say last mod time. Then if a new file or the last mod time is different, then rebuild your data. > > > > Wags ;) > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Monday, February 25, 2002 06:11 > > To: [EMAIL PROTECTED] > > Subject: appending files > > > > > > hi > > > > i have this very interesting task, and i need some inspiration. > > > > i have a directory with say 10 fcgi files (text files): > > > > now i would like to have a temp.fcgi file which contains all of the date from the .fcgi files (appended). however, i want my program to update the temp.fcgi file if new .fcgi files are added the directory. i was thinking something like testing the combined size of the .fcgi files compared to > > temp.fcgi and if it differs then wipe temp.fcgi and generate a new one? > > > > how can that be done? > > > > > > -martin > > > > -- > > > > -- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > -- > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]