public static StreamReaders OpenTextStream(string fileName, ste encoding) { StreamReaders sr = new StreamReaders(); sr.strRead = new sio.StreamReader(fileName, encoding); return sr; }
public static StreamReaders OpenMemoryStream(string fileName, ste encoding) { StreamReaders sr = new StreamReaders(); sr.str = BaseStreams.OpenMemoryStream(fileName).str; sr.binRead = new sio.BinaryReader(sr.str, encoding); return sr; }