var lines = File.ReadAllLines(path);
var count = lines.Length - 1;
string[] file = File.ReadAllLines(path, Encoding.Default);
string result = file[count].Substring(file[count].Length);
file[count] = Settings.Default.realmlist;
File.WriteAllLines(path, file, Encoding.Default);