var reader = new StreamReader(File.OpenRead(@"C:\sample.csv"));
List<string> listA = new List<string>();
string line1;
Stream originalStream = null;
while (!reader.EndOfStream)
{
line1 = reader.ReadLine();
listA.Add(line1);
}
listA.RemoveAt(0);
originalStream = listA;
Here I am trying to remove first row and thats ok but after removing it I have other records in list of string which I want to write in a Stream variable. can anybody tell me how can i achieve that.
Thanks