C:/users/MilosS/Desktop/seba/playboy
don't use "\" always use "/" it will work
This is not quite true. In the case of a windows file path using '/' instead of '\' will work in other situations you may well need to use '\'.
The problem is as follows: in Java the "\" char is used to escape other characters to provide special meaning ie \t gives a tab char, \n a newline etc. So if you want to put an actual "\" in a string you have a to add a "\" to the front of it to tell the compiler to embed a "\" rather than treat it as an escape sequence. So your string would need to be: "C:\\users\\MilosS\\Desktop\\seba\\playboy".
Bookmarks