Writing Text Files


This creates a file asynchronously and writ

public static async Task Method_WriteTextToFile() 
{
   string[] myText = { "Monday", "Tuesday", "Wednesday" };

   await System.IO.File.WriteAllLinesAsync("C:\temp\myTextFile.txt", myText);
}








© 2021 Better Solutions Limited. All Rights Reserved. © 2021 Better Solutions Limited TopPrevNext