Example #1
0
        public void RVSharpReadTest()
        {
            var source = new LocalFileSource();

            source.Dir = "../../";
            FileSystem.AddSource(source);

            var rvs = new RVSharp("RVSharpTest.rvs");

            Console.WriteLine(rvs.Get <double>("Key_1"));
            Console.WriteLine(rvs.Get <int>("Key_2"));
            Console.WriteLine(rvs.Get <int>("Key_3"));
            Console.WriteLine(rvs.Get <string>("Key_4"));
            Console.WriteLine(rvs.Get <int>("Key_5"));
            Console.WriteLine(rvs.Get <string>("Key_6"));
        }
Example #2
0
        public void CSVReaderTest()
        {
            var source = new LocalFileSource();

            source.Dir = "../../";
            FileSystem.AddSource(source);

            CSVReader csv = new CSVReader("CSVTestFile.csv");


            while (csv.EnumLine())
            {
                while (!csv.IsLineEnd)
                {
                    Console.Write(csv.Pop <string>() + "\t");
                }
                Console.WriteLine();
            }
        }