How do I use the Stream object to write text to a file? It is asking for bytes...
Here is the code:
public override void UpdateLog(string emailId)
{
using(Stream s = File.OpenWrite(logFile))
s.Write(emailId);
}
emailId should be written as a line of text in the file. Also, do I need to include \n to get the text to write as a new line?