You need to show me one of these lines from the file. I have no idea how
your elements are delimited, I assumed the pipe character, but obviously
that's not it...
--
Aaron Bertrand, SQL Server MVP
http://www.aspfaq.com/
Please reply in the newsgroups, but if you absolutely
must reply via e-mail, please take out the TRASH.
"risa wu" <> wrote in message
news:...
> Hi Aaron: Thank you very much for the help. I am now able to diplay all
> the line elements on one line but they all showed in one cell. How do I
> separate them in different cells? Here is my code. Do you have time to
> help with it?
> I feel so bad at that stupid coding.
> <% @language="vbscript" %>
> <% option explicit %>
> <html>
> <title> </title>
> <body>
> <div align="center">
> <table width="600" border="1">
> <%
> dim myfso,myts,intlinenum,strlinetext,i,j,f,rows,cols, delimiter
> const forreading=1
> delimiter="|"
> set myfso=server.createobject("scripting.filesystemobj ect")
> if myfso.fileexists("d:\gisnet\pplist.txt") then
> set myts=myfso.opentextfile("d:\gisnet\pplist.txt",for reading)
> f=myts.readall()
> rows=split(f,vbcrlf)
> for i=0 to ubound(rows)
> response.write "<tr>"
> cols=split(rows(i),delimiter)
> for j=0 to ubound(cols)
> response.write "<td>"& cols(j) &"</td>"
> next
> response.write "</tr>"
> next
> myts.close
> else
> reaponse.write "File was not found"
> end if
> %>
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!