Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

write line to file c#

using (FileStream fs = new(fileName, FileMode.OpenOrCreate, FileAccess.Write))
{
	using (StreamWriter sw = new(fs))
  		sw.WriteLine(message);
}
 
PREVIOUS NEXT
Tagged: #write #line #file
ADD COMMENT
Topic
Name
2+8 =