static void TestExisting() { foreach (FileInfo f in new DirectoryInfo("F:\\pkts").GetFiles("*.dmp")) { DnsResponse rs = new DnsResponse(IPAddress.Any, File.ReadAllBytes(f.FullName)); Console.WriteLine(rs.ToString()); Debug.WriteLine(rs.ToString()); } }