final File parentDir = new File(\"S:\\\\PDSPopulatingProgram\"); parentDir.mkdir(); final String hash = \"popupateData\"; final String fileName = hash + \".txt\"; fi
Just document it here on Windows you need to escape the \ character:
\
"e:\\directory\\-"