Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- File myPathFile
- FileReader fr = new FileReader(myPathFile);
- BufferedReader br = new BufferedReader(fr)
- String o = br.readLine();
- File f = new File(o)
- File f = new File("\testömyFile.pdf"); //When the UNC looks like this it won't work. (the ö is �)
- File f2 = new File("\testmyFile.pdf"); //This works
- \ComputerNameSharedFolderResource
- [\] flag to suggest it's a UNC
- [ComputerName] The name of the remote computer
- [] separator character
- [SharedFolder] The shared folder name
- [Resource] The path name of the remote file
- File f = new File("\\test\ö\myFile.pdf");
- File f2 = new File("\\test\myFile.pdf");
- File f = new File("c:\test\myFile.pdf");
- File f = new File("\test\myFile.pdf");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement