4 Eylül 2015 Cuma

c# StreamWriter writer async

 static void Main(string[] args)
        {
            WriteCharacters();
        }

        static async void WriteCharacters()
        {
            using (StreamWriter writer = File.CreateText("newfile.txt"))
            {
                await writer.WriteLineAsync("birinci satı yazı");
                await writer.WriteLineAsync("2. satıryazı");
            }
        }