Ejemplo n.º 1
0
 static List<ServiceFileRecord> LoadServiceRecordsFromFile()
 {
     string path = Path.Combine(Environment.CurrentDirectory, "services.txt");
     List<ServiceFileRecord> records = new List<ServiceFileRecord>();
     using (var reader = new ServicesFileReader(path))
     {
         ServiceFileRecord? record;
         while ((record = reader.ReadNextRecord()) != null)
         {
             records.Add(record.Value);
         }
     }
     return records;
 }
Ejemplo n.º 2
0
        static List <ServiceFileRecord> LoadServiceRecordsFromFile()
        {
            string path = Path.Combine(Environment.CurrentDirectory, "services.txt");
            List <ServiceFileRecord> records = new List <ServiceFileRecord>();

            using (var reader = new ServicesFileReader(path))
            {
                ServiceFileRecord?record;
                while ((record = reader.ReadNextRecord()) != null)
                {
                    records.Add(record.Value);
                }
            }
            return(records);
        }