FileWriter (interface)

The FileWriter interface is used to implement a general object providing file output stream capabilities. For an example implementation of this see the TextWriter and BinaryWriter objects.

参考

FileReader

FileWriter FileWriter FileWriter BinaryWriter BinaryWriter BinaryWriter->FileWriter TextWriter TextWriter TextWriter->FileWriter

Functions

Boolean close ! ()
Boolean isOpen ? ()
Boolean open ! ( in String filePath )

Functions in detail

Boolean FileWriter.close! ()

closes an open file


Boolean FileWriter.isOpen? ()

returns true if this writer has a valid file open


Boolean FileWriter.open! ( in String filePath )

opens a file (eventually closes the previous one)