if you truly want to pursue it in this manner, your best bet would be using the module object. Look up the methods in the help file, they're pretty straight forward...you'll be using a combination of DeleteLines, AddFromString, and Insert, I'll wager.