Exemple #1
0
 private object[] returnCloudValues(string mPath)
 {
     string[] vlStrArr = new string[CloudArr.Length];
     object[] vlArr    = new object[CloudArr.Length];
     using (System.IO.StreamReader sr = new System.IO.StreamReader(mPath))
     {
         string hd  = sr.ReadLine();
         string vls = sr.ReadLine();
         vlStrArr = vls.Split(new char[] { ',' });
         sr.Close();
     }
     for (int i = 0; i < vlArr.Length; i++)
     {
         string vl = vlStrArr[i];
         if (i < 2)
         {
             vlArr[i] = vl;
         }
         else
         {
             if (geoUtil.isNumeric(vl))
             {
                 vlArr[i] = System.Convert.ToDouble(vl);
             }
             else
             {
                 vlArr[i] = 0;
             }
         }
     }
     return(vlArr);
 }