>If I have a 270 MB log file, can I use CF to split it up into say ten 27 MB
>files or some such thing?  Or maybe into like 100,000 lines per file or 
>some
>such thing.
>
>I'm currently finding it impossible to view the contents of this file due 
>to
>the size.  Purchased a file splitting utility, but it was unable to do the
>task.  Have not been able to load the file in Notepad or Word.
>
>I'm hoping there might be a CF way around this.

I don't (necessarily) have the definitive answer you might be looking for, 
but I don't think CF solely can do what you want it to do. To do what you 
want to do, you would need to use the CFFILE tag. The problems with it (in 
this case) is that CFFILE will read the entire file into your server's 
memory before doing any sort of manipulation with the contents. So if you're 
server doesn't have boatloads of memory, you're out of luck.

However, one thought that does come to mind as I'm writing this is to 
potentially set up a text driver datasource in your CF Administrator and 
then query the file that way. I'm not entirely sure how to do that (sorry!), 
but I think I've heard this being done before. Check out a source such as 
cfcomet.com for more info on this. I'm sure that if it can be done this way, 
they'll have the answer.

Regards,
Dave.


______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to