31 package eu.mihosoft.vrl.v3d;
33 import java.io.BufferedWriter;
34 import java.io.IOException;
35 import java.nio.charset.Charset;
36 import java.nio.file.Files;
37 import java.nio.file.Path;
38 import java.nio.file.StandardOpenOption;
52 throw new AssertionError(
"Don't instantiate me",
null);
63 public static void write(Path p, String s)
throws IOException {
64 try (BufferedWriter writer = Files.newBufferedWriter(p, Charset.forName(
"UTF-8"),
65 StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING)) {
66 writer.write(s, 0, s.length());
78 public static String
read(Path p)
throws IOException {
79 return new String(Files.readAllBytes(p), Charset.forName(
"UTF-8"));
static String read(Path p)
static void write(Path p, String s)