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

namespace Files
{
    class Example14
    {
        // Listing 16-14
        static void Log(string message)
        {
            using (var sw = new StreamWriter(@"c:\temp\log.txt", true))
            {
                sw.WriteLine(message);
            }
        }
    }
}
