Thursday, 6 August 2015

File Handling

Topics
1. Introduction to file handling in java.


File Handling in java is done by using various input and output streams . So here in this post we discuss about how we can read and write java code for reading from a file and writing to a file .
To achieve the desired goal we need to connect the file to the input stream so that , we can read the file in java .The following code helps in achieving the task

        BufferedReader bf=new BufferedReader(new FileReader(abc.txt));



Image result for file handling in java

No comments:

Post a Comment