Beispiel #1
0
        public List <IceWTIInfo> ReadIceWtiFile(string fileName)
        {
            var iceWtiList = new List <IceWTIInfo>();

            using (var sr = new StreamReader(fileName))
            {
                while (sr.Peek() != -1)
                {
                    var line  = sr.ReadLine();
                    var field = line.Split(',');

                    var obj = new IceWTIInfo(field[0], field[1], field[2], field[3], field[4], field[5], field[6], field[7], field[8], field[9], field[10], field[11]);

                    iceWtiList.Add(obj);
                }

                sr.Close();
            }
            return(iceWtiList);
        }
        public List<IceWTIInfo> ReadIceWtiFile(string fileName)
        {
            var iceWtiList = new List<IceWTIInfo>();

            using (var sr = new StreamReader(fileName))
            {
                while (sr.Peek() != -1)
                {
                    var line = sr.ReadLine();
                    var field = line.Split(',');

                    var obj = new IceWTIInfo(field[0], field[1], field[2], field[3], field[4], field[5], field[6], field[7], field[8], field[9], field[10], field[11]);

                    iceWtiList.Add(obj);
                }

                sr.Close();
            }
            return iceWtiList;
        }