No Flush () for Handle based I/O? lazarus / 61-Beginners ---------------------------------------------------------------------- joho · 2017-09-03 06:27 Is there no FileCommit (fh : THandle) or similar? Like Flush (). AFAIK, all OSs have this functionality. ---------------------------------------------------------------------- Thaddy · 2017-09-03 07:05 Manuals...??? https://www.freepascal.org/docs-html/rtl/system/flush.html for text files. Under Windows we have https://msdn.microsoft.com/en- us/library/windows/desktop/aa364439(v=vs.85).aspx which can be used with the handle of a stream. [edit] I am rather surprised that the baseunix unit does not implement fp equivalents of flush(), fflush() fsync() and sync()... Maybe Marco can have a look at it? ---------------------------------------------------------------------- joho · 2017-09-03 09:43 My point was exactly that. I know about Flush (), but it does not take a THandle, like FileClose, FileWrite, FileRead, and so on. So my point is that there should be a FileFlush (const fh: THandle). (And there should also be a FileCreateNew () that will fail if the file exists ) ---------------------------------------------------------------------- marcov · 2017-09-03 12:05 https://bugs.freepascal.org/view.php?id=15824 ---------------------------------------------------------------------- joho · 2017-09-04 06:46 Great ... I'm not too familiar with release statuses, etc for FP. When will this be in a Stable release? ---------------------------------------------------------------------- Thaddy · 2017-09-04 07:46 Tnx Marco! ---------------------------------------------------------------------- marcov · 2017-09-04 08:03 Hopefully soon, but it is too early to tell.