eclipse - Invalid escape sequence \\ is used but it still doesnt work in java for my file path -


i have read other posts , answers , applied them still doesnt work.

i brand new java in class it's online , accelerated it's bit difficult me understand @ quick pace please bear me if don't understand.

string filename = "c:\\users\\jonathan lee\\eclipse-workspace\myfile.text"; 

i have , i've tried different amount of backslashes seems create more errors.

you have escape each backslash that: string filename = "c:\\users\\jonathan lee\\eclipse-workspace\\myfile.text"


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -