sw.WriteLine(); sw.WriteLine(); sw.WriteLine(); sw.WriteLine("{0}", value);
WriteLine()
StreamReader
ReadToEnd()
Close
StreamWriter
WriteAlltext
File
string filepath = ...;string text = File.ReadAllText(filepath);//Use my solution to add linesAppendNewLine(text);AppendNewLine(text);AppendNewLine(text);//Then write the text back to the file again.File.WriteAllText(filepath, text);
append
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)