After using HBEReplace,
HBEReplaceAll or HBEReplaceAllRE
the changes are not processed immediately. Each change is
written into buffer. The buffer is writen into file automatically
at the end of work with file. If you need write the changes
immediately use HBEFlush. HBEFlush empties this
buffer and writes all changes to file.
Arguments:
Function has no arguments.
Return value:
If the function succeeds, the return value is True. If the
function fails, the return value is False.
Remark:
You will need HBEFlush if two function like HBEReplace
will be write into same place in the file consecutive. Functions
HBEReplaceAll and HBEReplaceAllRE
call HBEFlush automatically if necessary. Function
HBEReplace cannot calls HBEFlush
automatically because works with absolute position in the
file. HBEFlush changes file and then can changes this
position. If you are not sure where apply HBEFlush,
place HBEFlush before every call of HBEReplace.