All pastes #539036 Raw Edit

Mine

public text v1 · immutable
·published 2007-06-05 05:10 UTC
rendered paste body
using System;
using System.Collections.Generic;
using System.Collections;
using System.Text;
using System.IO;

namespace LogParser
{
    class Program
    {
        static void Main(string[] args)
        {
            fileReader();
            Console.Read();
        }

        static void tokenize(String line)
        {
            char d = ' ';
            String[] temp = line.Split(d);
            if (temp[8].Equals("200")) { 
            Console.Write(temp[0] + " ");
            Console.Write(temp[3] + " " + temp[4] + " ");
            Console.Write(temp[8]);
            Console.WriteLine();
            }
        }

        static void fileReader()
        {
            TextReader t = new StreamReader("log.txt");
            String s;
            while ((s = t.ReadLine()) != null)
            {
                tokenize(s);
            }
            t.Close();
        }
    }
}