- Home /
Line Reading
i already know how to read stuff but how can i say like: if(lalala.Equals(lololol.text.line2)) something like that
Comment
Best Answer
Answer by DaveA · Jul 29, 2011 at 02:29 PM
If I understand you at all, lolol is some sort of object containing text, and you want to access line 2 of that, right? If so:
var lines = lolol.text.Split("\n"[0]); // create array of strings, one per line, starting with 0
if (lalala == lines[1])
...