package info.istlab.IoTP; import java.io.File; public class MyFile extends File { public MyFile(String pathname) { super(pathname); } public String toString() { String d = new String(App.workingDir+File.separator); if (d.contains("\\")){ d = d.replace("\\","\\\\"); } // System.out.println(d); return super.toString().replaceAll(d, ""); } }