Hello,
I am really new to vb.net and programming in general. I am wondering if someone can show me how to do this.
I have a text file called for example... mytestfile.txt
it looks like this:
NUMBER....NAME.............................SECOND NAME
======= ==================== ====================
1250204 Food mart Food Mart 2
so the first field has 7 characters, than a space and the second field has 20, than a space and the third has 20.
I would like to get this type of file into excel into a CSV or something where it goes into A1, B1, C1...A2, B2, C2 etc.
So I am thinking this would have to read through the file, delete the first two lines, the headings..and than place a TAB or a COMA at line 8 and than another at line 21.
Go through line by line and do this...and than save it out as excel .xls. And since it has tabs in the right places it will go into the write cells in excel.
How would this be done?
I am really new to vb.net and programming in general. I am wondering if someone can show me how to do this.
I have a text file called for example... mytestfile.txt
it looks like this:
NUMBER....NAME.............................SECOND NAME
======= ==================== ====================
1250204 Food mart Food Mart 2
so the first field has 7 characters, than a space and the second field has 20, than a space and the third has 20.
I would like to get this type of file into excel into a CSV or something where it goes into A1, B1, C1...A2, B2, C2 etc.
So I am thinking this would have to read through the file, delete the first two lines, the headings..and than place a TAB or a COMA at line 8 and than another at line 21.
Go through line by line and do this...and than save it out as excel .xls. And since it has tabs in the right places it will go into the write cells in excel.
How would this be done?