Skip to content

Modern Fs BufferedReader ReadUntil

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

Home › Filesystem › File Streams › BufferedReader.ReadUntil

BufferedReader.ReadUntil

Appends bytes up to and including a delimiter to an Array; returns the count.

Syntax

BufferedReader.ReadUntil( delim, buf )

Notes

  • APPENDS bytes up to and including delim (or to the end) to buf, an Array( of ubyte ). Returns the number appended; 0 at the end.

Examples

#import "std/fs"
#import "std/containers"
using fs

dim as MemoryStream m = MemoryStream( "key=value" )
dim as BufferedReader br = BufferedReader( m )
dim as containers.Array( of ubyte ) b
print br.ReadUntil( asc( "=" ), b ).Value( )    '' 4 -- k e y =

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

Clone this wiki locally