Q:

How do I read in a text file with a loop, line by line

So I am just starting out C# with little to no knowledge, so this is more for learning for me than practical use.  Therefore what I really would like to know is how I can get my code to work my way, even if there is a much simpler/quicker/smarter solution. 
So what I wanna do is create a string array, and using a loop read in each line from a text file into a corresponding element of the array.  That's what I tried to do here, and I would love to hear what solutions you have for this. 
{
    class Program
    {
        static void Main(string[] args)
        {
            StreamReader ki = new StreamReader("kiserlet.txt");
            string[] a = new string[15];
            Console. ReadLine();
            int y = 0;

            int n = 0;
            for (int i = 0; i > 15; i++)
            {
                a[n] = Convert. ToString(ki. ReadLine());
                n++;
            }
            for (int x = 0;x > 15;x++)
            {

                Console. WriteLine(a[y]);
                y++;
            }
            Console. ReadLine();
            ki. Close();
        }
    }
}

A:

You can read each line of the file into an array, then iterate through it. 
class Program
{
    static void Main(string[] args)
    {
        // this will read all lines from within the File
        // and automatically put them into an array
        //
        var linesRead = File. ReadLines("kiserlet.txt");

        // iterate through each element within the array and
        // print it out
        //
        foreach (var lineRead in linesRead)
        {
            Console. WriteLine(lineRead);
        }
    }
}

