Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 168
  • Last Modified:

export an array(quickie)

yo-0

<cffile action="READ" file="C:\WINNT\Profiles\duncan\Desktop\BCS_Attend.txt" variable="bsc">

<CFSET bcsarray = ListToArray(bsc)>
<cfoutput>
#bcsarray#<br>
</cfoutput>
<cfoutput>
#bsc.recordcount#

wont export the array- help???
0
owlsey
Asked:
owlsey
  • 3
  • 3
1 Solution
 
cheekycjCommented:
try
<cfset bscarray = ListToArray(bsc, "#chr(10)##chr(13)#")>

CJ
0
 
owlseyAuthor Commented:
q- in asp OpenAsTextStream- i use dhte vbcrlf to signify the line return- does this work in CF?

thansk CheekY!
0
 
owlseyAuthor Commented:
q- in asp OpenAsTextStream- i use dhte vbcrlf to signify the line return- does this work in CF?

thansk CheekY!
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
cheekycjCommented:
chr(10) and chr(13) cover both linefeed and carriage return chars.

CJ
0
 
owlseyAuthor Commented:
rock so hard you cannae rock nae harder!
0
 
cheekycjCommented:
Thanx, glad I could help.

CJ
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now