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]

Reply via email to