Skip to content

Modern Fs TextWriter WriteLine

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

Home › Filesystem › File Streams › TextWriter.WriteLine

TextWriter.WriteLine

Writes a string followed by the writer's NewLine.

Syntax

TextWriter.WriteLine( [ s ] )

Notes

  • s, then NewLine.

Examples

#import "std/fs"
using fs

dim as MemoryStream m
dim as TextWriter tw = TextWriter( m )
tw.NewLine = "|"
tw.WriteLine( "a" )
tw.WriteLine( )
print m.ToUtf8Text( )    '' a||

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

Clone this wiki locally