protected override void Run() { Console.WriteLine("{0} started", Id); IReader reader = GetInput().Reader; StreamWriter file = new StreamWriter(Parameters.AsString(_filePath)); int count = 0; while (Active && reader.Next()) { string line = string.Empty; for (int i = 0; i < reader.Columns.Count; i++) { line += reader.AsString(i); } file.WriteLine(line); count++; //Console.WriteLine("result: {0}",item.ToString()); } file.Close(); Console.WriteLine("[{1}] {2} : Count = {0}", count, DateTime.Now, Id); }