Create a text file with tab delimiters

S

shantanu

Hi all

I have two coloumns in a excel worksheet where the first coloumn is a
header and the second coloumn is a corresponding value. Also i have a
text file That contains header and values in a tabdelimited format.
Now the requirement is like I have to compare the Headers in excel
with the headers in the text file and write the corresponding values
from the excel in the text file. Can somebody help.
Regards
Shantanu
 
N

Nicholas Paldino [.NET/C# MVP]

Why not just read the file into a string, and then call the Split method
using the tab character as the delimiter? You will then have the headers
that you need to find the data for, and you can automate excel (or use an
OLEDB provider for Excel) to get the data you need.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top