Files
BeWoPlaner/Service/Core/ConfigReader.cs

26 lines
550 B
C#
Raw Normal View History

2025-06-13 11:37:19 +02:00
using BeWo.Service.Extensions;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BeWo.Service.Core
{
public static class ConfigReader
{
public static List<string> GetIPAddressList(IPAddressList iPAddressList)
{
if(iPAddressList == IPAddressList.None)
throw new ArgumentException(nameof(iPAddressList));
2025-06-13 11:37:19 +02:00
var lConfigPath = iPAddressList.GetConfigPath();
var lines = File.ReadAllLines(lConfigPath);
return lines.ToList();
}
}
}