using (StreamReader r = new StreamReader(edSourceFileToReplaceStrings.Text))
while ((lineData = r.ReadLine()) != null)
dataFile.Add(lineData);
foreach (string line in dataFile)
file.WriteLine(line);
Developing with CSharp many time you feel a strange feeling... then feeling of lost and how to solve it. Fortunately MSDN has done a good work to help the developers. .net offers thousand ways to do several things! This is the worst thing… because, you do not know where to start from and what works in real world! I hope to help you with your CSharpache.