From: Tim Mcd Date: 2008-08-01T03:22:04+09:00 Subject: File manipulation So, I am currently working on a MUD (Online multiplayer text based game, like an MMO). The MUD's scripting language is LPC. I am trying to create a ruby script, that reads another ruby file, and changes all instances of 'Sword-of-might = Sword.new(...)' to something like 'static void create() {...}'. Nothing too fancy, just me being able to go through a file finding different bits of ruby that I can then replace with the equivalent LPC code. An example of how it might work is: Ruby has a table of ruby phrases and what to turn them into if encountered. Ruby then reads the given file, and if it finds any of the given phrases, turns them into the corresponding LPC that I have defined. So, the problem is, I have no idea how to go about doing something like this in Ruby. Any thoughts/help or places to look? (tutorials, etc.) -- Posted via http://www.ruby-forum.com/.