<cfset line = listLast(data, chr(13))>
to
<cfset line = listLast(data, "USGS")>
and works to this point
http://www.rockymtanglers.com/flows/try3.cfm
but now im having troubles sereating them out
---------- Original Message ----------------------------------
From: "dave" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date: Fri, 23 Jul 2004 02:22:54 -0400
>i have gotten it written to a file and read and here is the output using listLast
>not really giving me the last, maybe cause im writing tot a txt andnot a csv?
>
>http://www.rockymtanglers.com/flows/try.cfm
>
>
>code
>
>
><!--- retrieve info from USGS website --->
><cfhttp url="" "
>method="get">
></cfhttp>
>
><!--- place contents into a formated variable --->
><cfset page = #HTMLEditFormat(cfhttp.filecontent)#>
>
><!--- write variable to text file --->
><cffile action=""
> addnewline="no"
> file="c:/websites/sites/flows/flowData.txt"
> output="#page#">
>
>
>
><!--- read from just written text file --->
><cffile action=""
> file="c:/websites/sites/flows/flowData.txt"
> variable="data">
>
>
>
> <!--- <cfdump var="#data#"> --->
>
><!--- get last line from test file --->
><cfset line = listLast(data, chr(13))>
>
>
>
>
>
><cfoutput>
>#Line#
></cfoutput>
>
>
>
>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

