CopyPastor

Detecting plagiarism made easy.

Score: 0.8404223322868347; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2019-10-22
by Alexandr

Original Post

Original - Posted on 2011-03-12
by Michael M.



            
Present in both answers; Present only in the new answer; Present only in the old answer;

using System.IO; static void Main(string[] args) { using(var reader = new StreamReader(@"C:\test.csv")) { List<string> listA = new List<string>(); List<string> listB = new List<string>(); while (!reader.EndOfStream) { var line = reader.ReadLine(); var values = line.Split(';'); listA.Add(values[0]); listB.Add(values[1]); } } }
You can do it like this:
using System.IO;
static void Main(string[] args) { using(var reader = new StreamReader(@"C:\test.csv")) { List<string> listA = new List<string>(); List<string> listB = new List<string>(); while (!reader.EndOfStream) { var line = reader.ReadLine(); var values = line.Split(';');
listA.Add(values[0]); listB.Add(values[1]); } } }


        
Present in both answers; Present only in the new answer; Present only in the old answer;