<!--- Replace empty entries with a space --->
<cfset filecontent = ReplaceNoCase(filecontent,"||","| |")>
<cfset filecontent = ReplaceNoCase(filecontent,"||","| |")>

<!--- Create new array to hold results --->
<cfset resultarray = ArrayNew(1)>

<!--- Loop over filecontent to split in lines --->
<cfloop list="#filecontent#" index="currentline" delimiters="#Chr(10)#">
   <!--- Insert a complete line as array elements --->
   <cfset temp = ArrayAppend(resultarray,ListToArray(currentline,"|"))>
</cfloop>

Jochem


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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