public bsdata getNext() { if (sset.Count() == 0) { return(null); } else { bsdata bs = sset.Min(); sset.Remove(bs); if (srar[bs.nf] != null) { string s = srar[bs.nf].ReadLine(); if (!String.IsNullOrEmpty(s)) { sset.Add(new bsdata(s, bs.nf)); } else { srar[bs.nf].Close(); srar[bs.nf] = null; } } return(bs); } }
public void DoIt() { while ((mbsdata = sepr.getNext()) != null) { sw.WriteLine(mbsdata.ToString()); } sw.Flush(); sw.Close(); }