code: public static File newFile (File root, String... parts)
      {
          File path = root;
          for (String part : parts) {
              path = new File(path, part);
          }
          return path;
      }
docs: Creates a file from the supplied root using the specified child components. For example:
  <code>fromPath(new File("dir"), "subdir", "anotherdir", "file.txt")</code> creates a file
  with the Unix path <code>dir/subdir/anotherdir/file.txt</code>.