Class FileSystem
java.lang.Object
blazing.fs.FileSystem
-
Method Summary
Modifier and TypeMethodDescriptionappendToFile(File fp, String... data) Writes and appends the data provided into the filestatic StringfileExtension(String path) Extracts the file extension of a file.static Result<String, FileNotFoundException> readFileToString(String path) Opens a file and reads the contents into a StringwriteToFile(File fp, String data) Write the data into the file provided
-
Method Details
-
readFileToString
Opens a file and reads the contents into a String- Parameters:
path-- Returns:
- A result Object which has a string if successful and a FileNotFoundException if not.
-
writeToFile
-
appendToFile
-
fileExtension
-