I hate having to escape characters, so I've always been using Literal
strings in C#. (Yes, that's what they're called). But as Joe
mentioned, you will still need to escape double quotes. I think it
depends on whether you have more slashes or quotes in your string. ;-)

On Oct 1, 4:42 am, Fabian <[EMAIL PROTECTED]> wrote:
> Dear All-
>
> Is there a way to WriteLine a long string (i.e., 1000 words) with a
> lot of "" (quotes) and \ (backslashes) without having to put a
> preceding \ (backslash) infront of each instance ?
>
> Example:
>
> WriteLine(" ..........lots of text with a lot of "stuff in quotes"....
> and a lot of "\" characters too.  So......I want to output everything
> "without" having to "place a \" infront of each instance.....")
>
> Thank you.
>
> Fabian.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://cm.megasolutions.net/forums/default.aspx
 <p><a href="http://feeds.feedburner.com/DotNetDevelopment";><img 
src="http://feeds.feedburner.com/~fc/DotNetDevelopment?bg=99CCFF&amp;fg=444444&amp;anim=1";
 height="26" width="88" style="border:0" alt="" /></a></p>
-~----------~----~----~----~------~----~------~--~---

Reply via email to