That output didn't come from the code you posted. In particular there are no square brackets being printed in the line that outputs the file's path.
Copy, paste and post both the code and the runtime exception exactly as you see them.
It might be a good idea to also output the value of file_path
to check that its value is what you think it is. The fact that the runtime is grumblng about the syntax suggests that possibly you are having trouble with the slashes. Backslashes (\) are a PITA conceptually because they are escaped in String literals but are only a single character in a String instance. It's always easier, in Java, to use forward slashes (/). Also remember that there's a colon (
after a Windows drive letter.