I need to delete first row from string[] lines
. I load file text into str variable. In array string I split text from str where is one line of text new array item. But first line is title who I dont need in further code and I wanna delete or skip that line when I load file. Here is my code:
string url = @"E:\Sims.log";
Stream stream = File.Open(url, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
using (StreamReader sr = new StreamReader(stream))
{
string str = sr.ReadToEnd();
string[] lines = Regex.Split(str, "\r\n");
//I need to delete first row from lines
}