Try using ReplaceNoCase to replace "=newmessage=" with a single character
like "|". Then use list append with the "|"

> The delimiter field of cf's list functions specifies which 
> *single-character* delimiters will be recognized.
> 
> HTH
> 
> Dick
> 
> At 11:01 PM +0800 4/25/01, Kay Smoljak wrote:
> >Hi all,
> >
> >I'm trying to parse the contents of a text file, with the ultimate aim of
> >putting the data in a database table. The text file contains email messages
> >(which may contain html code), with each new message beginning with the text
> >'=newmessage=' (minus quotes). I'm trying to use the listappend function
> >like this:
> >
> ><cfset agentlist = listappend("agentlist", uploadedagentfile,
> >"=newmessage=")>
> >
> >to split the file into individual messages. But, it doesn't seem to be using
> >the specified delimiter to split the messages. In fact I'm not sure what
> >it's using. The test file contains three messages but when I try to use
> >listtoarray and output the array there are 700 odd elements!
> >
> >Any idea what's going on here? Any better way to do it?
> >
> >Thanks,
> >Kay.
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to