Mine
public text v1 · immutableusing System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace LogParser
{
class Program
{
static void Main(string[] args)
{
List<string> text = fileReader();
}
static List<string> fileReader(string file)
{
List<string> strings = new List<string>();
TextReader t = new StreamReader(file);
string s = "placeholder";
while ( (s = t.ReadLine() ) != "")
{
Console.WriteLine(s);
strings.Add(s);
}
t.Close();
}
}
}