File Handling in Java

When the content in a file is going to copy,there is two way,

1.bit stream
           FileInputStream and FileOutputStream are used to copy the content

2.character stream
           FileReader and FileWriter are used to copy the content in the text file into another

In these cases finally the files should be closed after checking the files are null or not.

Comments

Popular posts from this blog

How to push a file into a docker container

Docker - Begginer 1

Project(on going) - IPv6 Fragmentation