public void WriteSection(string section) { validateState(); m_writeState = enIniWriteState.Section; writeLine("[" + section + "]"); }
public void WriteSection(string section, string comment) { validateState(); m_writeState = enIniWriteState.Section; writeLine("[" + section + "]" + addComment(comment)); }
public void WriteEmpty() { validateState(); if (m_writeState == enIniWriteState.Start) { m_writeState = enIniWriteState.BeforeFirstSection; } writeLine(""); }
public void WriteEmpty(string comment) { validateState(); if (m_writeState == enIniWriteState.Start) { m_writeState = enIniWriteState.BeforeFirstSection; } if (comment == null) { writeLine(""); } else { writeLine(m_commentDelimiter + " " + comment); } }
public void Close() { m_textWriter.Close(); m_writeState = enIniWriteState.Closed; }