Beispiel #1
0
        static void Main(string[] args)
        {
            CutUrl cutUrl       = new CutUrl();
            var    getUrlOnFile = cutUrl.GetURLOnFile("URL.txt");
            var    shortUrl     = cutUrl.GetShortURL(getUrlOnFile);

            for (int i = 0; i < shortUrl.Length; i++)
            {
                Console.WriteLine($"{getUrlOnFile[i]} => {shortUrl[i]}");
            }
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            CutUrl cutUrl       = new CutUrl();
            var    getUrlOnFile = cutUrl.GetURLOnFile("URL.txt");
            var    shortUrl     = cutUrl.GetShortURL(getUrlOnFile);

            for (int i = 0; i < shortUrl.Length; i++)
            {
                Console.WriteLine($"{getUrlOnFile[i]} => {shortUrl[i]}");
            }
            Console.WriteLine("После нажатия Enter консоль закроется");
            Console.ReadLine();
        }