Link to home
Start Free TrialLog in
Avatar of zizi21
zizi21

asked on

Remove line when read file

hi,

i am reading a file and the file has empty lines or lots of spaces....

i have tokenize the line and am using isalnum to remove any special character..

how do i do say that if you come across line or space, just ignore it..i think, that is the problemm...

could anyone pls help
ASKER CERTIFIED SOLUTION
Avatar of sunnycoder
sunnycoder
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
you can also use isspace to detect white space without specifying the delimiters
http://linux.die.net/man/3/isspace
Avatar of zizi21
zizi21

ASKER

thank you very much...
Avatar of zizi21

ASKER

i think, i did something wrong..let me try that..