Exemplo n.º 1
0
        static void read(string path, string startLine, string nrOfLine)
        {
            ArrayList servers = new ArrayList();

            try
            {
                servers = nameServer.read(path);
            }
            catch (Exception)
            {
                Console.WriteLine("Device temporarily unavailable. Try again later.");
            }

            Console.WriteLine(servers.Count);
            foreach (string a in servers)
            {
                Console.WriteLine(a);
            }

            //foreach (FileNetworkAddress fna in servers)
            //  Console.WriteLine(fna.id, fna.ip, fna.port);
        }