Something like this:
<cfloop condition="#IsDefined("line")#">
<cfif (enough_data(line))>
<cfset ArrayAppend(linesArray, line)>
<cfset line = "">
</cfif>
<cfset line=line&jBuffer.readLine()>
</cfloop>
Where enough_data() counts the number of datapoints in the line. How
you do this would depend on what your data is supposed to look like.
For example, you could count the number of unescaped double-quotes and
divide by two.
Go get some more coffee. :-)
--Ben
Aaron Rouse wrote:
> I could see how that would be done when using CFFile and parsing
> through the file. However I am missing how to do it when using this
> other approach. I must admit I am going on only my first cup of
> coffee right now so my lack of "thinking juice" might be the cause for
> lack of vision right now ;)
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - RUWebby
http://www.ruwebby.com
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186461
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54