Skip to content

Modern Fs Stream WriteAll

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

Home › Filesystem › File Streams › Stream.WriteAll

Stream.WriteAll

Writes all n bytes, calling Write as often as it takes.

Syntax

Stream.WriteAll( buf, n )

Notes

  • Writes all n bytes, calling Write as often as it takes.

Examples

#import "std/fs"
using fs

dim as MemoryStream m
dim as ubyte b( 0 to 2 ) = { 65, 66, 67 }
print m.WriteAll( @b(0), 3 ).IsOk( )    '' true
print m.ToUtf8Text( )                   '' ABC

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

Clone this wiki locally