static public aRecord readFromStream(BinaryReader br, int record) { int r = 0; aRecord rec = new aRecord(); br.BaseStream.Position = 0; while (br.PeekChar() != -1 & r <= record) { rec.readFromStream(br); r++; } return(rec); }
static public aRecord readFromStream(BinaryReader br, string search) { aRecord rec = new aRecord(); while (br.PeekChar() != -1) { rec.readFromStream(br); if (rec.aString.Contains(search)) { return(rec); } } return(null); }