In C#, you can precede your opening double-quote with the @ symbol.
Then instead of \", you'll need to use two double-quotes = "" -
doesn't really accomplish your goal, but it gets rid of the
backslashes...
The only other thing I can think of is to store your string in a
textfile, then read that textfile at runtime. Or maybe you can use a
resource file, but I'm really not familiar with how those work - it
may be worth looking into.
On Sep 30, 4:42 pm, 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&fg=444444&anim=1"
height="26" width="88" style="border:0" alt="" /></a></p>
-~----------~----~----~----~------~----~------~--~---