public LuaTextWriter(string filename, Encoding encoding, LuaWriterSettings settings) : this(new FileStream(filename, FileMode.Create, FileAccess.Write, FileShare.Read), encoding) { if (settings == null) { throw new ArgumentNullException("settings"); } this.settings = settings; }
public static LuaWriter Create(string outputFilename, LuaWriterSettings settings) { if (outputFilename == null) { throw new ArgumentNullException("outputFilename"); } if (settings == null) { throw new ArgumentNullException("settings"); } return(new LuaTextWriter(outputFilename, null, settings)); }