Volkmaniac
Technical User
I took a script off that inserts a tab delimit at the end of every line:
proc main
string sLine, sTemp1, sTemp2, sTemp3
fopen 0 "C:\XXX_031204.txt" READ TEXT
while not feof 0
fgets 0 sLine
strtok sTemp1 sLine "`t" 1
strtok sTemp2 sLine "`t" 1
strtok sTemp3 sLine "`t" 1
endwhile
fclose 0
endproc
Is there a way I'd be able to insert a tab delimit on a space? I'd need to insert the tab delimit after each space so it can import easier into Excel:
CAP1SHZ 123 235359.70 25752.96
CAP1SLZ 17 10008.43 1736.24
CAP1SPZ 15 33892.88 10850.89
CAP1SSZ 44 57950.68 7333.66
A: 199 337211.69 45673.75
proc main
string sLine, sTemp1, sTemp2, sTemp3
fopen 0 "C:\XXX_031204.txt" READ TEXT
while not feof 0
fgets 0 sLine
strtok sTemp1 sLine "`t" 1
strtok sTemp2 sLine "`t" 1
strtok sTemp3 sLine "`t" 1
endwhile
fclose 0
endproc
Is there a way I'd be able to insert a tab delimit on a space? I'd need to insert the tab delimit after each space so it can import easier into Excel:
CAP1SHZ 123 235359.70 25752.96
CAP1SLZ 17 10008.43 1736.24
CAP1SPZ 15 33892.88 10850.89
CAP1SSZ 44 57950.68 7333.66
A: 199 337211.69 45673.75