That actually worked for me:

Rich,Bell,,
Rich,Bell,[EMAIL PROTECTED],
Jed,Ritchey,[EMAIL PROTECTED],
Bren,Wooten,,
Rachael,Kirkwood,,
Randy,Wright,,
Russell C,Wood,,
John,Eick,[EMAIL PROTECTED],
John,Wick,[EMAIL PROTECTED],
Daniel,Crocker,[EMAIL PROTECTED],
Steve,Donaldson,,
Mark,Hollier,[EMAIL PROTECTED],
Russel,Keller,,
Shawn,Shugars,,
Troy,D'Spain,,
Eric,Harris,[EMAIL PROTECTED],
Robb ,La Montague,[EMAIL PROTECTED],
Les,Maynardy,[EMAIL PROTECTED],
Juan,Greobler,[EMAIL PROTECTED],
Marc,Rosettenstein,[EMAIL PROTECTED],
Doug,Nunnelly,[EMAIL PROTECTED],
Matt,Blackhurst,[EMAIL PROTECTED],
Adam,Gansgirt,[EMAIL PROTECTED]
<cffile action="read" file="#ExpandPath('.')#/test.txt" variable="fileData">

<cfset fileData = Replace(fileData, chr(13), ",", "ALL")>
<cfset fileData = Replace(fileData, chr(9), "," , "ALL")>

<cfloop index="i" list="#fileData#" delimiters="#chr(10)##chr(13)#">
   <cfoutput><li>#i#</li></cfoutput>
</cfloop>

I did the ExpandPath since I didn't know what request.perge was. Nothing
else was changed (other than the replace statements; #'s aren't needed in a
cfset). Where do you get the error?

On 2/10/06, dave <[EMAIL PROTECTED]> wrote:
>
> When doing either I get a error saying I can't convert a simple value to a
> complex value, so I will start from scratch, if you wanna help cool if not
> thats cool too and thanks either way.
>
> a short copy of the files I will have to work with
> www.jamwerx.com/text.TAB
>
> first I upload it:
> <cffile Action="upload"
>         Filefield="FileContents"
>         DESTINATION="#request.perge#temp.txt"
>         Nameconflict="overwrite"
>         accept="text/plain, application/x-tab-delimited,
> application/tab,  application/octet-stream">
>
> then I read it:
> <cffile action="read" file="#request.perge#temp.txt" variable="fileData">
>
> then I replace the tabs:
> <cfset fileData = "#Replace("#fileData#", "#Chr(13)#", ",", "ALL")#">
> <cfset fileData = "#Replace("#fileData#", "#Chr(9)#", "," , "ALL")#">
>
> to see that list do a simple loop:
> <cfloop index="i" list="#fileData#" delimiters="#chr(10)##chr(13)#">
>     <cfoutput><li>#i#</li></cfoutput>
> </cfloop>
>
> Its at this point that I'm getting stuck, if i then try to go listtoarray
> it errors as well.
>
> ~Dave the disruptor~
> I forgot what I was gunna put here, Will woulda stole it anyways!
>
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231881
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to