Class FileUtil

java.lang.Object
eu.mihosoft.vrl.v3d.FileUtil

public class FileUtil extends Object
File util class.
Author:
Michael Hoffer <info@michaelhoffer.de>
  • Method Details Link icon

    • write Link icon

      public static void write(Path p, String s) throws IOException
      Writes the specified string to a file.
      Parameters:
      p - file destination (existing files will be overwritten)
      s - string to save
      Throws:
      IOException - if writing to file fails
    • read Link icon

      public static String read(Path p) throws IOException
      Reads the specified file to a string.
      Parameters:
      p - file to read
      Returns:
      the content of the file
      Throws:
      IOException - if reading from file failed