Forum: Ruby Binding/merging files

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
D1ed557f93bee22e8ef030791ef2191e?d=identicon&s=25 Mathias Frensen (ravensden)
on 2014-08-16 02:21
Hi
I'm continuing a little "fun-project" for a friend.
Project is entirely made in Ruby, and therefore I was hoping this was
achievable within Ruby too.

Is it possible for Ruby to take 2 executables (.exe files) and bind them
together. I know there will be issues executing the files, but that is
not That important at this state. I've done quite some extensive
searching, but so far that hasn't yielded anything useful.

Is this possible in Ruby?
54404bcac0f45bf1c8e8b827cd9bb709?d=identicon&s=25 7stud -- (7stud)
on 2014-08-20 20:14
File.open('combined.exe', 'w') do |f|
  f1 = File.read('prog1.exe')
  f2 = File.read('prog2.exe')
  f.write(f1 + f2)
end
This topic is locked and can not be replied to.