macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

Re: Problem Parsing Large File

Subject: Re: Problem Parsing Large File
From: "cfwild"
Date: Thu, 19 Mar 2009 03:03:44 +0000 UTC
Newsgroups: macromedia.coldfusion.cfml_general_discussion

Hi,

 This may not be the most efficient, but I've found this a pretty stable 
solution when I parse files.

 <cfset x = "#selectedfile#">
        
 <cfloop file="#x#" index="fileLine">
 Insert parsing logic here...
 </cfloop>

 You could also try a MOD function that reads in your java, then every 25 lines 
or so updates the db. This way you're not maxing out your string/memory.

 cfwild


<Prev in Thread] Current Thread [Next in Thread>