¡@

Home 

c# Programming Glossary: line_to_edit

Edit a specific Line of a Text File in C#

http://stackoverflow.com/questions/1971008/edit-a-specific-line-of-a-text-file-in-c-sharp

like this string line string.Empty int line_number 1 int line_to_edit 2 using StreamReader reader new StreamReader @ C source.xml.. target.xml while line reader.ReadLine null if line_number line_to_edit writer.WriteLine line line_number But whe I open the Writer.. System.IO class Program static void Main string args int line_to_edit 2 Warning 1 based indexing string sourceFile source.txt string..