Table of contents
question:
During the coding process of Java file operations, this very metaphysical solution process occurred.
First, the main error message is as follows:
Exception in Thread "main" java.io.FileNotFoundException: The file name, directory name, or volume label syntax is incorrect.
After surfing, I learned that when writing the path , because the path of the file is quickly copied (the premise is to change the backslash "\\" to a slash "/" ), an error will be reported after startup. For most people, their address is indeed correct and the file is indeed allowed to be accessed by the system. The result is a "file not found" error. When I first encountered it, I was really confused.
solve:
The metaphysical thing is that to solve the problem, you only need to type the file paths one by one. . . . . .
other:
As for why, we will leave it to be explored later. If anyone knows the reason, I hope you can enlighten me.