Reading/Writing Binary Files

I want to make a app for OS X that can open a game’s save file and modify certain offsets to give the player “Unlimited health”, “Special abilities”, etc. There are tons of tutorials on how to do this on C# and C++ but I’d like some guidance on how to do this on Swift or Obj C.

Hi @stick,
I can provide you with a direction to think on this,

you can load the entire file as binary using the contentsOf function and this data is generally returned as Data which is an array of bytes. If you are already aware of the offsets, then you can manage to modify the data and when you are done, you can save it back using the write method on Data

How things have changed, in my youth times, the way was to poke (set) the memory location with the values.

cheers,

Jayant