コード例 #1
0
        public List<IceBrentInfo> ReadIceBrentFile(string fileName)
        {
            var iceBrentList = new List<IceBrentInfo>();

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

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

                    iceBrentList.Add(obj);
                }

                sr.Close();
            }
            return iceBrentList;
        }
コード例 #2
0
        public List <IceBrentInfo> ReadIceBrentFile(string fileName)
        {
            var iceBrentList = new List <IceBrentInfo>();

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

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

                    iceBrentList.Add(obj);
                }

                sr.Close();
            }
            return(iceBrentList);
        }