dealing with errors c#
my program highlights three errors but I am unable to resolve this:
Error2:Expected class, delegate, enum, interface, or struct	C:\Users\a3708906\Documents\Filereader m 15062012\Filereader m 15062012\Filereader m 15062012\Form1.cs	109	17	Filereader m 15062012
Error1:Type or namespace definition, or end-of-file expected	C:\Users\a3708906\Documents\Filereader m 15062012\Filereader m 15062012\Filereader m 15062012\Form1.cs	107	1	Filereader m 15062012
Error3:Type or namespace definition, or end-of-file expected	C:\Users\a3708906\Documents\Filereader m 15062012\Filereader m 15062012\Filereader m 15062012\Form1.cs 114	5	Filereader m 15062012

The program itself is below: 
namespace Filereader_m_15062012
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            DialogResult result = folderBrowserDialog1.ShowDialog(); // Show the dialog.
            // create a list to insert the data into
            //put all the files in the root directory into array
            string[] array1 = Directory.GetFiles(folderBrowserDialog1.SelectedPath,"*.csv");

            // Display all files.
            TextWriter tw1 = new StreamWriter(folderBrowserDialog1.SelectedPath+"/listoffiles.txt");
            List<string> filenames = new List<string>();
            tw1.WriteLine("--- Files: ---");
            foreach (string name in array1)
            {
                tw1.WriteLine(name);
            }

            tw1.Close();
        }

        string[] array1;


        void Main(string[] args)
        {
            TextWriter tw2 = new StreamWriter(folderBrowserDialog1.SelectedPath + "/errorlist.txt");
            foreach (string name in array1)
            {
                if (File.Exists(name))
                {
                    ProcessFile();
                }
                else
                {
                    tw2.WriteLine("{0}", name);
                }


            }
        }

        public void ProcessFile()
        {
            string text = "";

            // create a list to insert the data into
            List<float> noise = new List<float>();

            TextWriter tw3 = new StreamWriter(folderBrowserDialog1.SelectedPath + "/name.txt");
               
                    string file = folderBrowserDialog1.SelectedPath+"/name";
                    FileInfo src = new FileInfo(file);
                    TextReader reader = src.OpenText();
                    text = reader.ReadLine();

                    // while the text being read in from reader.Readline() is not null
                    while (text != null)
                    {
                        text = reader.ReadLine();

                        {
                            while (text != null)
                            {
                                text = reader.ReadLine();
                                if (text != null)
                                {
                                    string[] words = text.Split(',');
                                    noise.Add(Convert.ToSingle(words[3]));

                                    // write text to a file
                                    tw3.WriteLine(text);
                                    //foreach (string word in words)
                                    //{
                                    //    tw.WriteLine(word);
                                    //}
                                }

                            }
                        }

                        tw3.Close();
                   }


                    }
                }

        }
}

        private void folderBrowserDialog1_HelpRequest(object sender, EventArgs e)
        {

        }

    }
}

I will be very grateful for your assistnace. Thank you. 
dealing with errors c#
===

my program highlights three errors but I am unable to resolve this:
Error2:Expected class, delegate, enum, interface, or struct	C:\Users\a3708906\Documents\Filereader m 15062012\Filereader m 15062012\Filereader m 15062012\Form1.cs	109	17	Filereader m 15062012
Error1:Type or namespace definition, or end-of-file expected	C:\Users\a3708906\Documents\Filereader m 15062012\Filereader m 15062012\Filereader m 15062012\Form1.cs	107	1	Filereader m 15062012
Error3:Type or namespace definition, or end-of-file expected	C:\Users\a3708906\Documents\Filereader m 15062012\Filereader m 15062012\Filereader m 15062012\Form1.cs 114	5	Filereader m 15062012

The program itself is below: 
namespace Filereader_m_15062012
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            DialogResult result = folderBrowserDialog1.ShowDialog(); // Show the dialog.
            // create a list to insert the data into
            //put all the files in the root directory into array
            string[] array1 = Directory.GetFiles(folderBrowserDialog1.SelectedPath,"*.csv");

            // Display all files.
            TextWriter tw1 = new StreamWriter(folderBrowserDialog1.SelectedPath+"/listoffiles.txt");
            List<string> filenames = new List<string>();
            tw1.WriteLine("--- Files: ---");
            foreach (string name in array1)
            {
                tw1.WriteLine(name);
            }

            tw1.Close();
        }

        string[] array1;


        void Main(string[] args)
        {
            TextWriter tw2 = new StreamWriter(folderBrowserDialog1.SelectedPath + "/errorlist.txt");
            foreach (string name in array1)
            {
                if (File.Exists(name))
                {
                    ProcessFile();
                }
                else
                {
                    tw2.WriteLine("{0}", name);
                }


            }
        }

        public void ProcessFile()
        {
            string text = "";

            // create a list to insert the data into
            List<float> noise = new List<float>();

            TextWriter tw3 = new StreamWriter(folderBrowserDialog1.SelectedPath + "/name.txt");
               
                    string file = folderBrowserDialog1.SelectedPath+"/name";
                    FileInfo src = new FileInfo(file);
                    TextReader reader = src.OpenText();
                    text = reader.ReadLine();

                    // while the text being read in from reader.Readline() is not null
                    while (text != null)
                    {
                        text = reader.ReadLine();

                        {
                            while (text != null)
                            {
                                text = reader.ReadLine();
                                if (text != null)
                                {
                                    string[] words = text.Split(',');
                                    noise.Add(Convert.ToSingle(words[3]));

                                    // write text to a file
                                    tw3.WriteLine(text);
                                    //foreach (string word in words)
                                    //{
                                    //    tw.WriteLine(word);
                                    //}
                                }

                            }
                        }

                        tw3.Close();
                   }


                    }
                }

        }
}

        private void folderBrowserDialog1_HelpRequest(object sender, EventArgs e)
        {

        }

    }
}

I will be very grateful for your assistnace. Thank you. 