how to use FileWriter to create file at a particular directory code example
Example: write file from a specific location in java
File file = new File("Z:\\results\\results.txt");
File file = new File("Z:\\results\\results.txt");