How to add ( " ) double quote character to a string?

  • Thread starter Thread starter Özden Irmak
  • Start date Start date
Ö

Özden Irmak

Hi,

I've to add ( " ) double quote character to a string which I later save the
string into a file?

How can I add this character to a string in C#? 3 times double quote doesn't
seem to work...

Thanks...

Özden
 
Try delimiting the string. For example

private String myString = new String( "I like \"toast\"." )

Which should contain the string: I like "toast".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top