Link to home
Create AccountLog 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
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
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..