<CFFILE ACTION="READ" FILE="#FileLocation#/#FileName#" VARIABLE="inFile">
<cfloop index="line" list="#inFile#" delimiters="#CHR(13)##CHR(10)#">
        <cfset name = trim(ListFirst(line, ":"))>
        <cfset value = trim(listlast(line, ":"))>
        <!--- eg name="url" and value="http://www.teachernet.gov.uk"; --->
</cfloop>

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] 
> Sent: 23 July 2003 13:00
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] Parsing text file
> 
> 
> Duncan,
> 
> File is returned as below. The text file contains header info 
> so I need to find where the lines with URL, Title and Summary 
> are and parse only these. Thanks, Damien
> ------------------------------------------
> 
> URL: http://www.teachernet.gov.uk/
> Title: Teachernet - The education website for teachers and 
> school managers. Resources for teachers ...
> Score: 54%
> Size: 14.9K
> Summary: Teachernet home page. The government standard for UK 
> teachers and teaching related subjects
> Date: 1058935526
> Indexed: 1058935528
> Flags: 0
> Nlinks: 0
> Publisher: 
> Keywords: "source for teach", "education news", "teacher 
> websites", "school publication", "online teacher", "teach 
> popular", "your online", "school mail", "education policy", 
> "education publication", "teachernet your online", "uk teach"
> Collections: teachnet
> 
> URL: http://www.dfes.gov.uk/fasttrack/
> Title: DfES Fast Track Teaching Website
> Score: 53%
> Size: 14.5K
> Summary: Fast Track teaching is about rapid progression to a 
> leadership position. Find out about becoming a Fast Track School.
> Date: 1035331743
> Indexed: 1035331534
> Flags: 0
> Nlinks: 0
> Publisher: 
> Keywords: "potential head", salary, "english teacher", "g 
> english", pay/salary, "teacher train", "graduate 
> recruitment", "teacher pay", "career development", "initial 
> teacher", leader, heads, progression, conditions, jobs, 
> "future leader"
> Collections: dfes
> ---------------------------------------------------
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] 
> Sent: 23 July 2003 12:41
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] Sum of one column of resultset
> 
> 
> 
> use RegEx for your parsing. give us more details of how the 
> text file is constructed and what you want to get out of it.
> 
> 
> Duncan Cumming
> IT Manager
> 
> http://www.alienationdesign.co.uk 
> mailto:[EMAIL PROTECTED]
> Tel: 0141 575 9700
> Fax: 0141 575 9600
> 
> Creative solutions in a technical world
> 
> ----------------------------------------------------------------------
> Get your domain names online from: http://www.alienationdomains.co.uk
> Reseller options available!
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> 
> 
>  
> 
>                     [EMAIL PROTECTED]
> 
>                     gsi.gov.uk                    To:
> [EMAIL PROTECTED]                                       
>                                                   cc:
> 
>                     23/07/2003 12:39              Subject:    
>  RE: [ cf-dev
> ] Sum of one column of resultset                
>                     Please respond to dev
> 
>  
> 
>  
> 
> 
> 
> 
> Hi,
> 
> Is there a simple way to get CF to parse a text file? I have 
> a result set coming in as text from a search engine query and 
> need to convert elements of this into an html formatted page
> 
> Thanks,
> Damien
> 
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] For human help, e-mail: 
> [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] For human help, e-mail: 
> [EMAIL PROTECTED]
> 
> 
> PLEASE NOTE: THE ABOVE MESSAGE WAS RECEIVED FROM THE INTERNET.
>  
> On entering the GSI, this email was scanned for viruses by 
> the Government Secure Intranet (GSI) virus scanning service 
> supplied exclusively by Cable & Wireless in partnership with 
> MessageLabs.
>  
> GSI users see 
> http://www.gsi.gov.uk/main/notices/information/gsi-003-2002.pd
f for further details. In case of problems, please call your organisational
IT helpdesk

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED] For human
help, e-mail: [EMAIL PROTECTED]



-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to