Visual C# - How to write a file comfortable and easy : I'm pretty new in developing C#, and my problem is to write a text file. I found some solution with StreamWriter lik this...

    StreamWriter file = new StreamWriter(C:\Downloads\test.txt);
    file.WriteLine("this is line one");
    file.WriteLine("\r\n");
    file.WriteLine("this is line 2");
    file.close();

Is there a more comfortable way to write a file? Maybe without the hardcoded "\r\n"?

Kind regards proto
