deepaks3 wrote:
1.In my screen i also want to show these values, so what is the method to fetch individual values
You can read the values into a dictionary like this:
Dictionary<string, string> values = new Dictionary<string, string>();
foreach (string line in File.ReadAllLines(fileName)) {
string[] data = line.Split('=');
if (data.Length == 2) values.Add(data[0], data[1]);
}
To read a value from the dictionary:
string id = values["ID"];
deepaks3 wrote:
2.When i make any change to the value i want it to be saved in that particular line itself.
Files are not line based, so you can't change a single line in a file. It's possible to update the file from that line and forward, but it's complicated. Just rewrite the entire file.
Despite everything, the person most likely to be fooling you next is yourself.