Shaitan00 Posted March 19, 2004 Posted March 19, 2004 Given some string, I need to detect if they begin with "//" and skip the string. Currently I am using if(line.IndexOf("//")==-1) however this skips the string if "//" is anywhere within, not just at the begining. Any clues? Quote
Administrators PlausiblyDamp Posted March 20, 2004 Administrators Posted March 20, 2004 if (line.StartsWith("//") Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.