If you've configured a file as a "static" resource, it'll be served up by a separate pool of servers that are optimized for serving static content. A consequence is that the file isn't available to be opened from your app. "resource" files are available for the app to open and read.
That's documented here.
You'll need to use a relative path when opening a resource. You've shown an absolute path above.