我有一段代碼如下: Dim fstream = new filestream(some file here)
dim bwriter = new binarywriter(fstream)
while not end of file
read from source file
bwriter.write()
bwriter.flush()
end while
我有一種方法,它使用二進制打字機寫一個記錄組成的幾個提示和一個字節數組到文件。作爲我的程序的一部分,此方法每秒執行十幾次。代碼如下: iLogFileMutex.WaitOne();
using (BinaryWriter iBinaryWriter = new BinaryWriter(File.Open(iMainLogFilename, FileMode.OpenOrCreate, Fil