6
Unir caminos en Java
En Pythonpuedo unir dos caminos con os.path.join: os.path.join("foo", "bar") # => "foo/bar" Estoy tratando de achive la misma en Java, sin preocuparse de si la OSes Unix, Solariso Windows: public static void main(String[] args) { Path currentRelativePath = Paths.get(""); String current_dir = currentRelativePath.toAbsolutePath().toString(); String filename = "data/foo.txt"; Path filepath = …
99
java