TextStream.ReadLine Method

Syntax

oTextStreamObj.ReadLine

Return Value

A String.

Description

Reads a line of the text file into memory, from the start of the current line up to the character immediately preceding the next end of line marker.

Rules at a Glance

Files opened for writing or appending can't be read; you must first close the file and reopen it using the ForRead constant.

See Also

TextStream.ReadAll Method, TextStream.ReadLine Method

Get VB & VBA in a Nutshell: The Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.