Posts: 317
Name: This Space for Rent
Location: Georgia
|
What do you need to do with the data that's tab delimited?
It's 2 parts. The examples shown below are completely separate and you will need to integrate them to get the desired result
1st is reading the file ( http://www.w3schools.com/asp/asp_ref_textstream.asp)
<%
Set fs=Server.CreateObject("Scripting.FileSystemObject ")
Set f=fs.OpenTextFile(Server.MapPath("testread.txt"), 1)
Response.Write(f.ReadAll)
f.Close
Set f=Nothing
Set fs=Nothing
%>
2nd part is splitting the delimited text by putting it into an array:
<%
Dim strTabs
strTabs = "this is a test of tabs" ' text you want to split
arrayTabs = Split(strTabs, " ") 'split when there are 5 spaces could be replaced with comma to separate by comma
For i = 0 to 6
Response.Write(arrTabs & "<br>") ' output of split text
Next
%>
will appear as:
this
is
a
test
of
tabs
__________________
Daniel
"I think therefore I am, I think." <!-- George Carlin
|