Hi, 
I try to read in a text file like follow,

# comments
#
line1 with information
line2 (blank)
line3 with information
line4 (blank)
# comments
#comments


I write my program in C  and also try to use JAVA. One thing very
interesting is my program can read-in this text file line by line (ether
in C or in JAVA) if no any blank line. If I edit the text file with some
blank line, I ether can not trin this line out (in C) or I get a error
message " line out of range". How can I detect a blank line and trim it
out?

Any suggestion will be appreciated. Thanks,




C.L.


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to