1. I am currently adding and saving data to my data file:
    Code:
    readonly DynamicConfigFile dataFile = Interface.Oxide.DataFileSystem.GetFile( "Objects" );      
    Dictionary<string, ulong> objects = new Dictionary<string, ulong>();objects = dataFile.ReadObject<Dictionary<string, ulong>>();objects[output] = player.userID;
    dataFile.WriteObject( objects );
    Is there any way for me to locate a specific line in the data file and then remove it and save the file again?

    The file is full of objects/steamIDs, and I want the specific object/line to be removed in my file as a player removes it.
     
  2. if (objects.ContainsKey("keyname")
    objects.Remove("keyname")
    Then resave
     
    Last edited by a moderator: Mar 29, 2016
  3. Oh, I didn't think about that, thanks!