scripting:api:wsh-text-stream:read-line

ReadLine

Method of IWshTextStream

Reads an entire line (up to, but not including, the newline character) from a TextStream file and returns the resulting string

var Text = WshTextStream.ReadLine();
Text = WshTextStream.ReadLine
BSTR Text;
HRESULT hr = WshTextStream.ReadLine(&Text);