Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void Derror(string XmlFile)
- {
- bool flag = false;
- if (File.Exists(XmlFile))
- {
- string[] array = File.ReadAllLines(XmlFile);
- for (int i = 0; i < array.Length; i++)
- {
- if (array[i].Contains("&"))
- {
- string str = array[i].Replace("&", "&");
- array[i] = array[i] + str;
- flag = true;
- }
- }
- if (flag)
- {
- File.WriteAllLines(XmlFile, array);
- }
- }
- else
- {
- // Could not find the XML file
- }
- }
Add Comment
Please, Sign In to add comment