Share via


TextIo.finalize Method

Closes the file and, if data was written, flushes the file buffers to disk.

Syntax

public void finalize()

Run On

Called

Remarks

The TextIO object is usually finalized by leaving the scope. The finalize method is not usually directly called. Output written to the file is not valid until the TextIO object is finalized.

See Also

Reference

TextIo Class