How can I put quotes in a string?
        Posted  
        
            by riad
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by riad
        
        
        
        Published on 2010-05-26T08:00:40Z
        Indexed on 
            2010/05/27
            6:01 UTC
        
        
        Read the original article
        Hit count: 275
        
I need to write a string literal to a text file, but the C# compiler finds errors when I use quote characters in it.
My current code:
writeText.WriteLine("<?xml version="1.0" encoding="utf-8"?>");
I need the output for the text file to be:
<?xml version="1.0" encoding="utf-8"?>
How can I put quote characters in strings in C#?
© Stack Overflow or respective owner