[thelist] Asp Split

Rob Smith rob.smith at lexjet.com
Mon May 22 13:57:25 CDT 2006


I must be in stupid land today. I've got a file for input using the text
stream object:

<%
Set fs=Server.CreateObject("Scripting.FileSystemObject")
Set f=fs.OpenTextFile(Server.MapPath("export.po"), 1)
%>
<pre>
<%
Dim line_array
do while f.AtEndOfStream = false
line = f.ReadLine
line_array = split(line,"")
Response.Write line_array(0)
Response.Write "<br>"
loop
%>
</pre>
<%
f.Close
Set f=Nothing
Set fs=Nothing
%>

This SHOULD print out the first character of each line. Oh no! it prints
out the first string of characters until it hits the first space. How
can I split a string into an array of characters?


Rob Smith
LexJet
rob.smith at lexjet.com
http://www.lexjet.com
(800)453-9538
(941)330-1210 Int'l
(941)330-1220 Fax
1680 Fruitville Road, 3rd Floor
Sarasota, FL 34236




More information about the thelist mailing list