PxPlus User Forum

Twitter Twitter Twitter

Author Topic: +B / -B behavior  (Read 836 times)

michaelgreer

  • Diamond Member
  • *****
  • Posts: 129
    • View Profile
+B / -B behavior
« on: June 11, 2020, 11:45:36 AM »
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

  • Diamond Member
  • *****
  • Posts: 3810
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: +B / -B behavior
« Reply #1 on: June 11, 2020, 03:28:28 PM »
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
eMail: mike.king@bbsysco.com