Class FileUtil

java.lang.Object
org.projecthusky.common.utils.FileUtil

public class FileUtil extends Object
File handling utilities
  • Method Details

    • combinePath

      @Deprecated(forRemoval=true) public static String combinePath(String path1, String path2)
      Deprecated, for removal: This API element is subject to removal in a future version.
      (at next version)
      Returns a combined Path of path1 and path2.
      Parameters:
      path1 - the first part (head) of the combined path.
      path2 - the second part (tail) of the combined path.
      Returns:
      the combined Path of path1 and path2.
    • saveString2File

      public static void saveString2File(String outputString, String outputFileName)
      Saves the given String to the given File (plain text). The file will be overwritten by this method.
      Parameters:
      outputString - This string will be saved into the given file
      outputFileName - The given string will be saved to this file