I am new to java programming.
File file = new File("C:\\Users\\user\\test.txt");
Here I used 2 /'s to seperate. If I have a method that returns file path as string , how can I pass that in File() for it to work correctly? The method fileDialogue.getDirectory() that returns path returns it in windows format. So I can't open the file whose path is returned by getDirectory method in FileDialogue.