[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua round-trip?
- From: Enrico Colombini <erix@...>
- Date: Fri, 08 Nov 2013 17:39:34 +0100
On 08/11/2013 17.29, Marc Lepage wrote:
I want to read in the file, manipulate some of the members (like name,
val), and then write it out again. But I want to preserve the functions
(onA, onB) as they are.
Any tips for how to do this?
You could do text substitutions on the source file, e.g. with
string.gsub, rather than (or in addition to) loading it.