UtilConsoleReadLine(Encoding, Int32) Method

Reads the next line of characters from the standard input stream.

This function attempts to be a improved replacement for ReadLine function.

Definition

Namespace: DevCase.Core.Application.Console
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static string ReadLine(
	Encoding encoding,
	int bufferSize = 32767
)

Parameters

encoding  Encoding
Text encoding to decode the line of characters from the standard input stream.
bufferSize  Int32  (Optional)
The character limit to read in the next line of characters from the standard input stream.

Minimum value is: 256

Default value is: Int16 (32767)

Note that the last two characters in the buffer are reserved for Cr + Lf.

Return Value

String
The next line of characters from the input stream, or if no more lines are available.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also