Home Notices Documents Classes Download Others Rice
Classes  >  reader  >  ReadLine()
reader class : ReadLine() method

Description

Gets a next line and advances the reading position.

Syntax

readerInstance.ReadLine()

Arguments

None.

Return value

ClassDescription
stringA next line.

Sample code

1:

reader r = new reader("c:\somewhere...\sample.txt");

2:

string nextLine = r.ReadLine();

Notes

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

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

The current position move one row forward.

The new line character does not include in the result.

Links for reference

Copyright © Rice All rights reserved.