ConfigFile.Save C# (CSharp) Method

Save() public method

public Save ( ) : bool
return bool
    public bool Save()
    {
        if (String.IsNullOrEmpty(m_path) == false)
            return Write(m_path);
        else
            return false;
    }

Usage Example

Example #1
0
    public void update_lvl_info(int level, int score)
    {
        // load previous record for level. 0 - if no record.
        int previous_max_lvl_score = (int)settings_file.GetValue("level_score", level.ToString(), 0);

        // update record
        if (score > previous_max_lvl_score)
        {
            settings_file.SetValue("level_score", level.ToString(), score);
        }
        settings_file.Save(settings_file_path);
    }
All Usage Examples Of ConfigFile::Save