public static LoadFromCache ( string FileName ) : List |
||
FileName | string | |
Résultat | List |
public static List<MultiComponentList> LoadFromCache(string FileName)
{
List<MultiComponentList> multilist = new List<MultiComponentList>();
using (StreamReader ip = new StreamReader(FileName))
{
string line;
while ((line = ip.ReadLine()) != null)
{
string[] split = Regex.Split(line, @"\s+");
if (split.Length == 7)
{
int count = Convert.ToInt32(split[2]);
multilist.Add(new MultiComponentList(ip, count));
}
}
}
return multilist;
}