How can I read a file from resources?

How can I read a text file from embedded resources into a string?

var file = File.new_for_uri (“resource:///path/filename.json”);

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.