Example #1
0
        protected override Variable Evaluate(ParsingScript script)
        {
            string filename = Utils.GetStringOrVarValue(script);
            string lines    = Utils.GetLinesFromList(script);

            Utils.AppendFileText(filename, lines);

            return(Variable.EmptyInstance);
        }
Example #2
0
        protected override Variable Evaluate(ParsingScript script)
        {
            string   filename = Utils.GetStringOrVarValue(script);
            Variable line     = Utils.GetItem(script);

            Utils.AppendFileText(filename, line.AsString() + Environment.NewLine);

            return(Variable.EmptyInstance);
        }