zhujp98
09-06-2003, 11:04 PM
VB6
I have a text file which contains
'mytxt.txt
this is txt file
for excieses
which contans tabs
i wnat to get rid of it
All the empty line contains one or several tabs "\t\t...\t"
My code is
Line input #1, strTemp
if trim$(strTemp<>"")
strArray(index)=strTemp
My intention is to store all row of txt file to an array of strings except
the empty row, but it does not work maybe because trim can not take care of tab.
how can i acheive my goal?
Thanks
I have a text file which contains
'mytxt.txt
this is txt file
for excieses
which contans tabs
i wnat to get rid of it
All the empty line contains one or several tabs "\t\t...\t"
My code is
Line input #1, strTemp
if trim$(strTemp<>"")
strArray(index)=strTemp
My intention is to store all row of txt file to an array of strings except
the empty row, but it does not work maybe because trim can not take care of tab.
how can i acheive my goal?
Thanks