Java example to compare two files byte by byte. We can also do this by calculating MD5 check sum.
Author: Anupama
Java example to compare contents of two text file line by line using apache commons io library FileUtils class.
Best To Read Text File In Java
Example for best and safest way to read file to String using apache commons io library.
Best Way to Check Newer File Java
FileUtils provides six method to compare file modification time. These methods have all required checks and exception handling. For any production grade Java application it is good to use this utility as it will save effort.
In Java file writting can be done very efficiently using FileUtils class of Apache Commons IO Java library.
FileUtils provides four method to do file move operation. These methods have all required checks and exception handling. For any production grade Java application it is good to use this utility as it will save effort.
In Java easiest way to create new file of Zero byte just like unix touch commanad is using touch method of FileUtils class of Apache Commons IO Java library. Commons IO is well tested library.
Get file size in units like kb mb gb using byteCountToDisplaySize method of FileUtils class of Apache commons-io library.
Java Get Users Home Directory
Get users Home directory in java using FileUtils class of Apache commons-io library.
Best and safe way to get users temp directory in Java. This can be done using FileUtils class of Apache Commons IO.