Skip to content

Modern Fs Stream Flush

Paul Squires edited this page Oct 22, 2026 · 3 revisions

Home › Filesystem › File Streams › Stream.Flush

Stream.Flush

Passes any buffered bytes on to where they are going.

Syntax

Stream.Flush( )

Notes

  • Pushes anything the stream buffers to where it goes. A stream that buffers nothing succeeds and does nothing.

Examples

#import "std/fs"
using fs

dim as MemoryStream m
print m.Flush( ).IsOk( )    '' true

Library: Filesystem Library Category: File Streams Documented under: Streams

Clone this wiki locally