Divas Unlimited Inc

Atlanta's Elite Fashion and Entertainment Consultants

In Java, File class is used for the representation of files or directory pathname. Because of the names of files and directory have different formats on a different platform. There are many methods of file classes which can be used for creating, reading, deleting or renaming a file. We can check permissions like: reading, writing, deleting etc of a file by using the built-in methods - java file handling.

File handling in Java implies reading from and writing data to a file. The File class from the java.io package, allows us to work with different formats of. Here in this program, first, a write function is created using the File Writer Package. Later the writer object is used to store the String of data in the file.

The java.io package contains nearly every class you might ever need to perform input and output (I/O) in Java. All these streams represent an input source and an output destination. The stream in the java.io package supports many data such as primitives, object, localized characters, etc - file handling in java.

Java provides lower level controls like opening / closing file, buffers and flush and hence provides a more flexible way of input output operations compared to many higher level languages and scripting technologies. For more information, please visit our site http://codingpanel.com/

Views: 2

Comment

You need to be a member of Divas Unlimited Inc to add comments!

Join Divas Unlimited Inc

© 2024   Created by Diva's Unlimited Inc..   Powered by

Report an Issue  |  Terms of Service