public class FileWriter
extends java.lang.Object
implements java.lang.AutoCloseable
BufferedWriter that writes to a File.| Constructor and Description |
|---|
FileWriter(java.lang.String filename) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
write(java.lang.String text) |
void |
writeln() |
void |
writeln(java.lang.String text) |
public FileWriter(java.lang.String filename)
throws java.io.IOException
java.io.IOExceptionpublic void writeln()
throws java.io.IOException
java.io.IOExceptionpublic void writeln(java.lang.String text)
throws java.io.IOException
java.io.IOExceptionpublic void write(java.lang.String text)
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseablejava.io.IOException