Solved

export an array(quickie)

Posted on 2002-03-21
6
144 Views
Last Modified: 2013-12-24
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
Comment
Question by:owlsey
  • 3
  • 3
6 Comments
 
LVL 19

Accepted Solution

by:
cheekycj earned 10 total points
ID: 6886567
try
<cfset bscarray = ListToArray(bsc, "#chr(10)##chr(13)#")>

CJ
0
 

Author Comment

by:owlsey
ID: 6886571
q- in asp OpenAsTextStream- i use dhte vbcrlf to signify the line return- does this work in CF?

thansk CheekY!
0
 

Author Comment

by:owlsey
ID: 6886572
q- in asp OpenAsTextStream- i use dhte vbcrlf to signify the line return- does this work in CF?

thansk CheekY!
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 19

Expert Comment

by:cheekycj
ID: 6886578
chr(10) and chr(13) cover both linefeed and carriage return chars.

CJ
0
 

Author Comment

by:owlsey
ID: 6886631
rock so hard you cannae rock nae harder!
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 6886718
Thanx, glad I could help.

CJ
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question