Toggle navigation
PxPlus User Forum
PxPlus User Forum
»
Main Board
»
Discussions
»
Programming
»
+B / -B behavior
Likes
« previous
next »
Print
Pages: [
1
]
Author
Topic: +B / -B behavior (Read 1178 times)
michaelgreer
Diamond Member
Posts: 129
+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?
Logged
Mike King
Diamond Member
Posts: 3828
Mike King
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.
Logged
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com
Print
Pages: [
1
]
« previous
next »
PxPlus User Forum
»
Main Board
»
Discussions
»
Programming
»
+B / -B behavior