chenna.deepa
24th September 2008, 11:26
Hi all,


i am able to read a file .but my problem is want to count the no of lines without empty lines and comments.but its counting the even empty lines and comments.

i have put
if (line <> " " and line <> "|" ) then

loc = loc + 1

endif

please help me in this

thanks in advance
deepa

zardoz
24th September 2008, 13:00
try:

....
if not isspace(line) and line(1;1) <> "|" then
.....

chenna.deepa
24th September 2008, 13:53
Hi zardoz,

thanks for ur reply
its working fine


thanks
deepa