Package com.javaholics
Class FileWriter
java.lang.Object
com.javaholics.FileWriter
A class that writes data to a file.
- Version:
- 1.0
- Author:
- Lindsay Kislingbury
-
Constructor Summary
ConstructorDescriptionFileWriter
(String filename) Constructs a new FileWriter with the specified filename. -
Method Summary
-
Constructor Details
-
FileWriter
Constructs a new FileWriter with the specified filename.- Parameters:
filename
- the name of the file to write to
-
-
Method Details
-
clearFile
public void clearFile()Clears the file specified in the constructor. -
writeData
Writes the specified data to the file specified in the constructor. The data is appended to the end of the file.- Parameters:
data
- the data to write to the file
-