close
import java.io.File;
File theFile = new File("/tmp/text1.txt");
println("Dirname: " + theFile.getParent());
println("Basename: " + theFile.getName());
============== Output ==============
Dirname: /tmp
Basename: text1.txt
全站熱搜
留言列表