Answers for "readline in c# just numbers"

C#
1

c# read lines number 3 from string

string line = File.ReadLines(FileName).Skip(14).Take(1).First();
Posted by: Guest on December-12-2020
0

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

string GetLine(string text, int lineNo) 
{ 
  string[] lines = text.Replace("\r","").Split('\n'); 
  return lines.Length >= lineNo ? lines[lineNo-1] : null; 
}
Posted by: Guest on December-12-2020

C# Answers by Framework

Browse Popular Code Answers by Language