Common mistakes with Java file streams

[color=darkblue][/color]


1. java.io.IOException: The system cannot find the specified path.

       Reason: The path you specified does not exist, check the path you gave



2. java.io.IOException: Access denied

      Reasons: 1. Is this file being used by other programs 2. Is the

                file name illegal

               3. Your current user does not have permission to access that directory (it is recommended to check whether your file has set permissions, is it read-only, or is it hidden)


Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327040702&siteId=291194637