private bool SetupNextFiles(int index) { dTimeStamp1 = 0; dTimeStamp2 = 0; if (br != null) { br.CloseFile(); } br = null; string f1 = ((BFileInfo)someBinaryFiles[index]).fileRec1; if (f1 != "") { br = new ByteReader(f1); br.OpenFile(); Console.WriteLine("Opening file for read: " + f1); } if (br == null) { return(false); } else { return(true); } }
/// <summary> /// Sets up the next binary file to read the data from /// </summary> /// <param name="index"></param> /// <returns></returns> private bool SetupNextFiles(int index) { if (br != null) { br.CloseFile(); } br = null; string f = ((string)someBinaryFiles[index]); if (f != "") { br = new ByteReader(f); br.OpenFile(); Console.WriteLine("Opening file for read: " + f); } if (br == null) { return(false); } else { return(true); } }
private void SetupFiles(String pathName) { br = new ByteReader(pathName); br.OpenFile(); }