Esempio n. 1
0
        public void ReadBinary()
        {
            var reader = File.OpenRead("Bibel.txt.bin");

            var strings = new NativeStringList();

            strings.ReadFromStream(reader);
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var c = new TextConverter();

            c.ConvertText("Bibel.txt");
            //BenchmarkRunner.Run<ReadBenchmarks>();
            //BenchmarkRunner.Run<WriteBenchmarks>();

            var reader = File.OpenRead("Bibel.txt.bin");

            var strings = new NativeStringList();

            strings.ReadFromStream(reader);


            foreach (var value in strings.Take(2000))
            {
                Console.WriteLine(value);
            }

            Console.ReadLine();
        }