troubleshooting Question

How to embed quotation marks in output file C

Avatar of rwheeler23
rwheeler23Flag for United States of America asked on
C#
4 Comments2 Solutions108 ViewsLast Modified:
I am using this to write data to a comma delimited text  file.
tw.WriteLine("{0,1},{1,1},{2,1},{3,1},{4,1},{5,1},{6,1},{7,1},{8,1},{9,1},{10,1}", dr["Arrest_ID"],dr["Incident"],dr["Arrest_Date"],dr["Arrest_Time"],dr["Age"],dr["Sex"],dr["Race"],dr["Ethnic"],dr["Crime_Location"],dr["ESRI_LOCATION"],dr["Law"]);

Now they are requesting that I enclose the text fields in quotation marks. Is it as simple as "{0,1}"?
ASKER CERTIFIED SOLUTION
Dustin Saunders
Co-Founder and Chief Architect
Join our community to see this answer!
Unlock 2 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros