예제 #1
0
파일: Test.cs 프로젝트: sjmeijer/sdk
        static void test_File()
        {
            try
              {
            String filename = "../../../../test_data/output.bin";
            Console.WriteLine("test_File, reading data file: \"" + filename + "\"");

            File file = new File(filename);
            int i = 0;
            while (i++ < 10)
            {
              float[] x = file.readOutputData();
              if (null == x)
              {
            break;
              }
              else
              {
            Console.WriteLine("q(" + i + ") = <" + x[0] + ", " + x[1] + "i, " + x[2] + "j, " + x[3] + "k>");
              }
            }

            file.close();
              }
              catch (Exception e)
              {
            Console.WriteLine(e.ToString());
              }
        }