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 moves to the beginning of the next line.

The new line character does not include in the result.

Links for reference

Copyright © Cooker All rights reserved.