Hi,
I want to Delete Blank Lines in a Text File, before I Transmit the File to a Host Computer. I wrote the following Script that will Detect the Blank Lines, now just a Method to get rid of them.
Thanks
proc main
string sLine
string sTok
integer c = 0
fopen 1 "C:\TEXT FILES\BLANK_TEST.txt" READ TEXT
while not feof 1
fgets 1 sLine
strtok sTok sLine " " 1
if nullstr sTok
c++
endif
endwhile
usermsg "Total Blank Lines Found %d" c
endproc
I want to Delete Blank Lines in a Text File, before I Transmit the File to a Host Computer. I wrote the following Script that will Detect the Blank Lines, now just a Method to get rid of them.
Thanks
proc main
string sLine
string sTok
integer c = 0
fopen 1 "C:\TEXT FILES\BLANK_TEST.txt" READ TEXT
while not feof 1
fgets 1 sLine
strtok sTok sLine " " 1
if nullstr sTok
c++
endif
endwhile
usermsg "Total Blank Lines Found %d" c
endproc