Invalid escape sequence (valid ones are \b \t \n \f \r \” \’ \\ )

You need to escape the “\” in the file path.

BufferedReader job = new BufferedReader 
               (new FileReader("\\My Documents\\JOBS\\newfile.txt"));

Leave a Comment