how to create dynamic paths in java and write the file data in java
<p>I will get dynamic paths from database. Example: 1.xyz/abc/file1.txt
2.pqr/file2.txt</p>

<p>Now I need to append these paths to existing file (eg:/users/rama/) and save that file</p>

<p>my final directory should like /users/rama/xyz/abc/file1.txt</p>

<p>I am able to create  directories such as xyz/abc if they don't exist, but the problem is file1.txt is also created as directory instead of file.</p>