public static string WriteToFile(string fileName)
        {
            StreamWriter writer = null;

            try
            {
                string stringFromFile = StreamReadWrite.ReadFromFile(fileName);

                writer = new StreamWriter(fileName);
                writer.WriteLine(stringFromFile + "Write test :" + DateTime.Now);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
            finally
            {
                if (writer != null)
                {
                    writer.Close();
                }
            }

            return("Succesful Write!!" + DateTime.Now);
        }
        public static void ProgramStreamReadWrite()
        {
            string fileName = Program.pathToProject + "stream.txt";

            Console.WriteLine(StreamReadWrite.ReadFromFile(fileName));
            Console.WriteLine("-----------------------------------------");
            Console.WriteLine(StreamReadWrite.WriteToFile(fileName));
            Console.WriteLine("-----------------------------------------");
            Console.WriteLine(StreamReadWrite.ReadFromFile(fileName));
        }