Try this:

<cffile action="" file="#expandpath(".")#\somefile.txt"
variable="myfile">

<cfloop list="#myfile#" delimiters="#chr(10)#" index="line">

            <cfloop list="#line#" delimiters="|" index="column">

                        <cfoutput>#column#<br></cfoutput>

            </cfloop>

</cfloop>

Steve Nelson

  _____  

From: Asim Manzur [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 03, 2004 12:22 PM
To: CF-Talk
Subject: need to edit the Text File

I have a quick quesiton I have a text file which can have upto 10 lines
something like below.
The "|" is the delimeter.

Title:|Story|Link|Target

What I need to do is Have to edit those lines as well as insert the new
lines at the bottom.

How this can be done through CFFILE.
(I think thats the only way)

Thanks
Asim

  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to