I want to write a file results.txt to a specific directory on my machine (Z:\\results to be precise). How do I go about specifying the directory to BufferedWriter/FileWriter
The best practice is using File.separator in the paths.