// $Id: reversefile.csharp,v 1.0 2002/11/29 10:31:00 dada Exp $
// http://dada.perl.it/shootout/
//
// This is a straightforward *alternative* C# implementation.
// It'll be interesting to compare it to a fast C# implementation.
//
// contributed by Isaac Gouy
using System;
using System.Collections;
namespace LanguageShootout
{
class reversefile
{
[STAThread]
static void Main(string[] args)
{
Stack lines = new Stack();
String line;
while ( (line = Console.ReadLine()) != null ) lines.Push(line);
System.Collections.IEnumerator items = lines.GetEnumerator();
while ( items.MoveNext() ) Console.WriteLine( items.Current );
}
}
}