using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Files
{
    class Example15
    {
        // Listing 16-15
        static void Log(string message)
        {
            using (StreamWriter sw = File.AppendText(@"c:\temp\log.txt"))
            {
                sw.WriteLine(message);
            }
        }
    }
}
