The Bytecode Club - Reverse Engineering Forum
DiskLib - Pure Java zero dependency Disk Reader & Disk Writer - Printable Version

+- The Bytecode Club - Reverse Engineering Forum (https://the.bytecode.club)
+-- Forum: Software (https://the.bytecode.club/forumdisplay.php?fid=19)
+--- Forum: Java Projects / Libraries (https://the.bytecode.club/forumdisplay.php?fid=136)
+--- Thread: DiskLib - Pure Java zero dependency Disk Reader & Disk Writer (/showthread.php?tid=46006)



DiskLib - Pure Java zero dependency Disk Reader & Disk Writer - Konloch - 02-17-2023

About: DiskLib is an easy to use zero dependency Disk Writer & Disk Reader with built in GZIP support for Java.
License: MIT License
Source: https://konloch.com/DiskLib/
Download Jar: https://konloch.com/DiskLib/releases/
Add as maven dependency:
Code:
<dependency>
  <groupId>com.konloch</groupId>
  <artifactId>DiskLib</artifactId>
  <version>1.0.1</version>
</dependency>

Write new file to disk / overwrite existing file
Code:
DiskReader.write("hello.txt", "Hello ");

Append to existing file
Code:
DiskReader.append("hello.txt", "World");

Reading Strings from disk
Code:
ArrayList<String> lines = DiskReader.read("hello.txt");

Reading String Arrays from disk
Code:
String[] lines = DiskReader.readLines("hello.txt");

Reading Bytes from disk
Code:
byte[] bytes = DiskReader.readBytes("hello.txt");