共用方式為


BufferedWriter.NewLine Method

Definition

Writes a line separator.

[Android.Runtime.Register("newLine", "()V", "GetNewLineHandler")]
public virtual void NewLine ();
[<Android.Runtime.Register("newLine", "()V", "GetNewLineHandler")>]
abstract member NewLine : unit -> unit
override this.NewLine : unit -> unit
Attributes

Exceptions

if an error occurs attempting to write to this writer.

Remarks

Writes a line separator. The line separator string is defined by the system property line.separator, and is not necessarily a single newline ('\n') character.

Java documentation for java.io.BufferedWriter.newLine().

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