JAVA-IO
- Example create a file in Java
- Example construct a file path in Java
- Example set the file permission in Java
- Example read file in Java – BufferedInputStream
- Example read file in Java – BufferedReader
- Example write to file in Java – FileOutputStream
- Example write to file in Java – BufferedWriter
- Example append content to file in java
- Example delete file in Java
- Example delete files with certain extension only
- Example rename file in Java
- Example copy a file in java
- Example move file to another directory in Java
- Example get the file creation date in Java
- Example get the file last modified date in Java
- Example change the file last modified date in Java
- Example make a file read only in Java
- Example get file size in Java
- Example get the filepath of a file in Java
- Example get the total number of lines of a file in Java
- Example check if a file exists in Java
- Example check if a file is hidden in Java
- Example read UTF-8 encoded data from a file in Java
- Example write UTF-8 encoded data into a file in Java
- Example assign file content into a variable in Java
- Example generate a file checksum value in java
- Example convert File to byte[] in java
- Example save byte[] to file in java
- Example convert String to InputStream in Java
- Example convert InputStream to String in Java
- Example convert File to Hex in Java
- Example get free disk space in Java
- Example write an Object to file in Java
- Example read an Object from file in Java
- Example create temporary file in Java
- Example write data to temporary file in Java
- Example delete temporary file in Java
- Example get the temporary file path in Java
- Example create directory in java
- Example copy directory in Java
- Example delete directory in Java
- Example traverse a directory structure in Java
- Example check if directory is empty in Java
- Example get the current working directory in Java
- Example compress files in ZIP format
- Example decompress files from a ZIP file
- Example compress a file in GZIP format
- Example decompress file from GZIP file
- Example compress serialized object into file
- Example decompress serialized object from a Gzip file
- Example Read a file from resources folder