Java, A Beginner's Guide: Advanced Features (Core Series) Updated To Java 8. by Harry

Java, A Beginner's Guide: Advanced Features (Core Series) Updated To Java 8. by Harry

Author:Harry
Language: eng
Format: azw3
Publisher: Programmers Mind Inc.
Published: 2014-12-12T16:00:00+00:00


FileWriter

The FileWriter class creates a writer that you can use to write to a file. Its two most commonly used constructors are:

Constructors:-

FileWriter(File file)

Constructors a FileWriter object to write to the specified file.

FileWriter(String fileName)

Constructors a FileWriter object to write to the specified file.

FileWriter(File file, boolean append)

Constructors a FileWriter object to write to the specified file in the append mode.

FileWriter(Sring filename, boolean append)

Constructors a FileWriter object to write to the specified file in the append mode. If first two constructors are used then always a new file is created. If file with the specified name exists, it gets destroyed. If the last two constructors are used and append flag is false then they behave like first two constructors.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.