I was wondering how to load a file from my System Libraries, but I'm not sure how. I was thinking something along the lines of:
require 'gosu' require "Picture.jpg" and then having the rest of my code, but every time I try that, I get the error:
No such file to load I'm not sure if I'm doing something wrong, or there just isn't a way to load a file from my system library into Ruby?
requirewill read a system file or a gem, which consist of Ruby code. Ruby would have no idea what to do with a binary "jpg" file and would raise an error immediately. It's possible to tell Ruby to read a binary file into a variable for processing in some way, but unless we know what you intend to do with it we won't be able to help you further.