![]() ![]() Public void write(string str) throws IOException: A string is written using this method.Public void write(char stir) throws IOException. Public void write(char stir) throws IOException: An array of characters is written using this method.Public void write(int c) throws IOException: A single character is written using this method public void write(int c) throws IOException.The FileWriter class in java consists of several methods, which are: FileWriter(String filename, Boolean append): When a file name is given, a FileWriter object is created, and the Boolean value indicates whether to append the data that is being written or not using this method FileWriter(String filename, Boolean append).FileWriter(String fileName): When a file name is given, a FileWriter object is created using this method FileWriter(String fileName).FileWriter(FileDescriptor fd): A FileWriter object is constructed, which is associated with the file descriptor specified as a parameter in the method FileWriter(FileDescriptor fd).FileWriter(File file, Boolean append): When a file object is given, a FileWriter object is constructed, and the Boolean value indicates whether to append the data that is being written or not using this method FileWriter(File file, Boolean append).FileWriter(File file): When a file object is given, a FileWriter object is constructed by using this method FileWriter(File file).The FileWriter class in java consists of several constructors. Java.io.FileWriter Constructors in FileWriter in Java
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |