G
Gunter Hansen
Assume I read (from a text file) into a string a file name which includes a prepended path
like
String fn = new String("D:\aaa\bbb\ddd\myfile.txt");
Is there a function which helps me to extract the path part of it similar to
System.out.println("Path=" + fn.getPathPart());
which yields
Path=D:\aaa\bbb\ddd\
Gunter
like
String fn = new String("D:\aaa\bbb\ddd\myfile.txt");
Is there a function which helps me to extract the path part of it similar to
System.out.println("Path=" + fn.getPathPart());
which yields
Path=D:\aaa\bbb\ddd\
Gunter