次の方法で共有


BufferedReader.ReadLine Method

Definition

Reads a line of text.

[Android.Runtime.Register("readLine", "()Ljava/lang/String;", "GetReadLineHandler")]
public virtual string? ReadLine ();
[<Android.Runtime.Register("readLine", "()Ljava/lang/String;", "GetReadLineHandler")>]
abstract member ReadLine : unit -> string
override this.ReadLine : unit -> string

Returns

A String containing the contents of the line, not including any line-termination characters, or null if the end of the stream has been reached without reading any characters

Attributes

Exceptions

if this reader is closed or some other I/O error occurs.

Remarks

Reads a line of text. A line is considered to be terminated by any one of a line feed ('\n'), a carriage return ('\r'), a carriage return followed immediately by a line feed, or by reaching the end-of-file (EOF).

Java documentation for java.io.BufferedReader.readLine().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to