Raised This Month: $ Target: $400
 0% 

Reading Files (skipping lines, etc...)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
shadow.hk
Senior Member
Join Date: Dec 2008
Location: WA, Australia
Old 10-02-2009 , 00:53   Re: Reading Files (skipping lines, etc...)
Reply With Quote #3

ohhh... I see. So just replace szLine[0] with szLine[0] == '^n'...

PHP Code:
if( szLine[0] == ';' || !szLine[0] == '^n' ) continue; 
or do i need the whole...

PHP Code:
if( szLine[0] == ';' || !szLine[0] || szLine[0] == '^n' ) continue; 
and I'm presuming I can remove the 'else' part of the code as well? since continue excludes it from the rest of the loop?

Thanks for the quick response by the way
shadow.hk is offline
Send a message via MSN to shadow.hk
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode