Esempio n. 1
0
        static void find(string path, string name)
        {
            ArrayList foundedFiles = new ArrayList();

            try
            {
                foundedFiles = nameServer.findfile(path, name);
            }
            catch (Exception)
            {
                Console.WriteLine("Device temporarily unavailable. Try again later.");
                return;
            }

            Console.BackgroundColor = ConsoleColor.DarkGreen;
            foreach (string file in foundedFiles)
            {
                Console.Write(file);
            }

            Console.BackgroundColor = ConsoleColor.Black;
        }