Skip to content

Modern Fs TextReader ReadToEnd

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

Home › Filesystem › File Streams › TextReader.ReadToEnd

TextReader.ReadToEnd

Appends all the remaining decoded text to a string.

Syntax

TextReader.ReadToEnd( s )

Notes

  • Everything left, decoded and APPENDED to s. TRUE when anything was appended.

Examples

#import "std/fs"
using fs

dim as MemoryStream m = MemoryStream( "head" & chr( 10 ) & "rest of it" )
dim as TextReader tr = TextReader( m )
dim as ustring ln, rest
tr.ReadLine( ln )
tr.ReadToEnd( rest )
print rest    '' rest of it

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

Clone this wiki locally