Esempio n. 1
0
        public void Run()
        {
            Console.WriteLine("Choose file:"); // Prompt
            Console.WriteLine("1 - abra.txt"); // Prompt
            Console.WriteLine("or quit"); // Prompt

            var fileNumber = Console.ReadLine();
            var fieName = string.Empty;
            switch (fileNumber)
            {
                case "1":
                    fieName = "abra.txt";
                    break;
                case "quit":
                    return;
                default:
                    return;
            }

            var @in = new In($"Files\\Strings\\{fieName}");
            var content = @in.ReadAll();
            var binaryDump = new BinaryDump(content, 16);
            binaryDump.Dump();

            Console.ReadLine();
        }
Esempio n. 2
0
        public void Run()
        {
            Console.WriteLine("Choose file:"); // Prompt
            Console.WriteLine("1 - abra.txt"); // Prompt
            Console.WriteLine("or quit");      // Prompt

            var fileNumber = Console.ReadLine();
            var fieName    = string.Empty;

            switch (fileNumber)
            {
            case "1":
                fieName = "abra.txt";
                break;

            case "quit":
                return;

            default:
                return;
            }


            var @in        = new In($"Files\\Strings\\{fieName}");
            var content    = @in.ReadAll();
            var binaryDump = new BinaryDump(content, 16);

            binaryDump.Dump();

            Console.ReadLine();
        }