I have code that can create file in D disk in my Computer an can write some information in this file.Here is source
File file = new File("D:\\" + filename);
FileWriter writer = new FileWriter(file, true);
writer.write(builder.toString());
writer.close();
System.out.println("done!");
statusText.setText("Information successfully saved!");
statusText.setForeground(Color.BLACK);
This code working correct but when i try to change file directory like this i have exception
File file = new File("D:\\testFolder\\" + filename);
Here is a exception
IOException: D:\testFolder\2017-08-11.csv (The system cannot find the path specified)
What am i doing wrong or how i can solve my problem?