title: Java - shorten the path of a directory
body: <p>I would like to shorten the path of a directory.</p>
  
  <p>I know the directory where the path must start, for example (the path starts from <em>1</em>):</p>
  
  <p>instead of <code>C:\temp\top\1\file.txt</code>, I want to get <code>1\file.txt</code>.</p>