using System; using System.Linq; using System.IO; namespace ConsoleApplication1 { class Program { static void Main(string[ args) { using (DataClasses1DataContext dataContext = new DataClasses1DataContext()) { StreamWriter sw = new StreamWriter(@"d:\log.txt"); sw.AutoFlush = true; TextWriter...