Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# C# read text from a certain line number from string

string GetLine(string text, int lineNo) 
{ 
  string[] lines = text.Replace("
","").Split('
'); 
  return lines.Length >= lineNo ? lines[lineNo-1] : null; 
} 
 
PREVIOUS NEXT
Tagged: #read #text #line #number #string
ADD COMMENT
Topic
Name
4+9 =