Home Cooker Classes Others Rice CookerGX
Classes  >  reader  >  ReadLine()
reader class : ReadLine() method

Description

Gets a next line and advances the character position.

Syntax

readerInstance.ReadLine()

Arguments

None

Return value

ClassDescription
stringA next line.

Sample code

//anyReader is an any instance of reader type.

string nextLine = anyReader.ReadLine();

Notes

It's a wrapper of the System.IO.StreamReader.ReadLine().

Returns a next line. Throws exception If there is not a next line.

The current position move one row forward by ReadLine().

The new line character does not include in the result.

Links for reference

Copyright © Rice All rights reserved.