[thelist] Asp Split

Chris at globet.com Chris at globet.com
Tue May 23 08:51:11 CDT 2006


> I found this that did the trick:
> function StringToArray(str_or_int)


> End function
> Set fs=Server.CreateObject("Scripting.FileSystemObject")
> Set f=fs.OpenTextFile(Server.MapPath("export.po"), 1)
> myarray = StringToArray(f.ReadLine)

What are you doing that requires an array of characters? If you just
need the first character of the filename, then the following will

do while f.AtEndOfStream = false
    line = f.ReadLine
    Response.Write Left(line, 1)
    Response.Write "<br>"

Chris Marsh
Web Developer
t: +44 20 8246 4804 x828
f: +44 20 8246 4808
e: chris at globet.com
w: http://www.globet.com/

Any opinions expressed in this email are those of the individual and not
necessarily the Company. This message is intended for the use of the
individual or entity to which it is addressed and may contain
information that is confidential and privileged and exempt from
disclosure under applicable law. If the reader of this message is not
the intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this communication is strictly prohibited.
If you have received this communication in error, please contact the
sender immediately and delete it from your system. 

More information about the thelist mailing list