I was trying to learn how to save and read data from Ruby binary files while working with QtRuby but Marshal version of the values saved can't be read by Ruby. I know this wouldn't have happend with TXT files but I want to work with binary not TXT files.
Using Marshal.dump and Marshal.load methods definitely don't work at all. What can I do to ensure Ruby and QtRuby can read the same file without causing any issues?
Error Message: in 'load': incompatible marshal file format (can't be read) (TypeError)