Skip to content

Modern Fs Stream Position

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

Home › Filesystem › File Streams › Stream.Position

Stream.Position

Returns the current position, or fails on a stream that cannot seek.

Syntax

Stream.Position( )

Notes

  • The current position: Seek( 0, SEEK_FROM_CURRENT ). Fails on a stream that cannot seek.

Examples

#import "std/fs"
using fs

dim as MemoryStream m = MemoryStream( "abc" )
m.Seek( 2 )
print m.Position( ).Value( )    '' 2

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

Clone this wiki locally