+B / -B behavior

Started by Michael Greer, June 11, 2020, 11:45:36 AM

Previous topic - Next topic

Michael Greer

I am attempting to cause a log file to not buffer.  From what I can tell from the docs is that -B should be used in an open, like open(hfn,opt="-B")mylog.txt.

This does not seem to be working.  Am I misinterpreting the documentation?

Mike King

The '-B' and '+B' are Mnemonics which means you would PRINT them to an OPEN file to turn on/off buffering.

They are effective on serial type files where the system buffers the data internally in order to improve speed as opposed to writing to the file after each PRINT/WRITE directive.
Mike King
President - BBSysco Consulting - http://www.bbsysco.com
eMail: mike.king@bbsysco.com