All pastes #539000 Raw Edit

Mine

public text v1 · immutable
·published 2007-06-05 04:45 UTC
rendered paste body
using 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();
        }
    }
}