Esempio 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;
 }
Esempio 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);
        }