} // func open /// <summary></summary> /// <param name="args"></param> /// <returns></returns> public LuaResult lines(object[] args) { if (args == null || args.Length == 0) { return(defaultInput.lines(null)); } else { return(Lua.GetEnumIteratorResult(new LuaLinesEnumerator(LuaFileStream.OpenFile((string)args[0], "r", defaultEncoding), true, args, 1))); } } // func lines
} // func ReadFormat /// <summary></summary> /// <param name="args"></param> /// <returns></returns> public LuaResult lines(object[] args) { return(Lua.GetEnumIteratorResult(new LuaLinesEnumerator(this, false, args, 0))); } // func lines
} // func ReadFormat /// <summary></summary> /// <param name="args"></param> /// <returns></returns> public LuaResult lines(object[] args) => Lua.GetEnumIteratorResult(new LuaLinesEnumerator(this, false, args, 0));