Link to home
Start Free TrialLog in
Avatar of ARW
ARW

asked on

Read a Tab-delimited file and break it into its component columns

I need a code snippet that will read a tab delimited test file and break each record into its component pieces that are delimited by the tab.  I need this in Classic ASP, not ASP.NET

Thanks,
ARW
ASKER CERTIFIED SOLUTION
Avatar of WMIF
WMIF

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ARW
ARW

ASKER

I want to stick the data in separate arrays representing the different columns.
arw
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ARW

ASKER

So the split command automatically knows to split these columns into the array?

ARW
yes.  it splits the text based on the delimiter you give it.  then you access the columns through the index of the array.
Split returns array and you use index to access each element. See my example above