diff --git a/NetworkScanner/Program.cs b/NetworkScanner/Program.cs index be98eca..52665ff 100644 --- a/NetworkScanner/Program.cs +++ b/NetworkScanner/Program.cs @@ -1,4 +1,4 @@ -using System.Net.NetworkInformation; +using System.Net.NetworkInformation; using System.Threading; using System.Diagnostics; using System.Collections.Generic; @@ -123,6 +123,7 @@ public static void Main(string[] args) watch.Stop(); destroyPingers(); + //Generate csv file using (var sw = new StreamWriter("result.csv")) { sw.WriteLine("\"IP\";\"Name\";"); @@ -130,7 +131,6 @@ public static void Main(string[] args) sw.WriteLine(l); } - Console.WriteLine(); Console.WriteLine("Finished in {0}. Found {1} active IP-addresses.", watch.Elapsed.ToString(), m_Result); Console.ReadKey();