[Solved] Comparing two Sub-Strings of two Strings between two set positions (integer values) in C [closed]

You can use the strncmp function to compare two strings up to a maximum number of characters. To start a comparison in the middle of a string, you would pass in the address of the array element to start the comparison at. For example: if (strncmp(&string1[4], &string2[4], 4) == 0) { printf(“characters 5 – 8 … Read more

[Solved] Error while saving changes to custom config file [closed]

Requirements using System.Configuration; Read var appSettings = ConfigurationManager.AppSettings; string result = appSettings[key] ?? “Not Found”; Write var configFile = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); var settings = configFile.AppSettings.Settings; if (settings[key] == null) { settings.Add(key, value); } else { settings[key].Value = value; } configFile.Save(ConfigurationSaveMode.Modified); ConfigurationManager.RefreshSection(configFile.AppSettings.SectionInformation.Name); solved Error while saving changes to custom config file [closed]