private static IndexInfo ExtractIndex() { IndexInfo index = null; // Load the file OpenFileDialog dlg = new OpenFileDialog(); if (dlg.ShowDialog() == DialogResult.OK) { using (StreamReader sr = new StreamReader(File.OpenRead(dlg.FileName))) { string line = string.Empty; IndexBuilder info = new IndexBuilder(); while ((line = sr.ReadLine()) != null) { info.ProcessLine(line); } index = info.Index; } } return(index); }
public IndexBuilder() { Index = new IndexInfo(); }