Unless you do some type of check, then on the data, you will not know if you 
have updated data or not. I can change a H to J in the file and the size of the file 
has not changed, but it is not the same file. You will have to come up with some way 
either within your database or on the Perl
side to check. Size alone will not guarantee you anything as to what is in the file.

Wags ;)

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 07:57
To: Wagner-David
Cc: [EMAIL PROTECTED]
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]

Reply via email to