First of all use this #cfhttp.filecontent# to see what is in the file.
If you need to loop through those contents you will have to do something
like this:
<cfloop list="# cfhttp .fileContents#" index="line"
delimiters="#chr(10)##chr(13)#">
This assumes this is a list separated and users vbcrlf for line ends. You
can play around with it if need be.
Inside the cfloop just output #line# to see the contents of the current row.
You could also assign values or store in a DB at that point as well..
Steve
-----Original Message-----
From: Jim T [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 09, 2003 10:55 AM
To: CF-Talk
Subject: Query of a text file
I am Stuck .. can someone help?
I am getting this error:
Attribute validation error for tag cfoutput.
The value of the attribute query, which is currently "thefile", is
invalid.
this is the text filetop of the text file:
Code,page,title,unit,price
884,248,LIGHTED ROSE BASKET,1 EA,9.95
1402,194,3 PC BRASS BUTTERFLY WALL SET,1 SET,6.30
1506,91,BRASS/SHIPS CARGO LANTERN,1 EA,53.30
1875,175,10 PC PORC COBALT BLUE TEA SET,1 SET,3.65
1932,54,"CHILDREN'S PLAQUE",1 EA,2.65
2018,303,100 BR/BELL WIND CHM,1 EA,2.95
This is the code:
<!--- Get the file --->
<cfhttp url=""> method="GET"
Name="thefile">
</cfhttp>
<!--- Output the file --->
<cfoutput query="thefile">
code<b>#code#</b>
</cfoutput>
Are you paying more than $9.99 for internet? Then you are paying too much!
http://bizovation.speedydialup.net <http://bizovation.speedydialup.net>
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

