Solved

Assign Path

Posted on 2013-12-05
1
269 Views
Last Modified: 2013-12-05
I want to know why is it necessary to have the @ symbol while writing to a file or while assigning a path..

StreamWriter Det = new StreamWriter(@"\\inrms150\RDMXML$\ItemMaster\Log_ABS\ItemUploadError.txt", true);

Open in new window

0
Comment
Question by:Moizsaif123
1 Comment
 
LVL 22

Accepted Solution

by:
Mrunal earned 500 total points
Comment Utility
Hi
"\" is escape character.

It is not always necessary to have @ symbol always.

You can write like this also:

StreamWriter Det = new StreamWriter(@"\\inrms150\RDMXML$\ItemMaster\Log_ABS\ItemUploadError.txt", true);

StreamWriter Det1 = new StreamWriter("\\\\inrms150\\RDMXML$\\ItemMaster\\Log_ABS\\ItemUploadError.txt", true);


more information:

http://www.peachpit.com/articles/article.aspx?p=31938&seqNum=9
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Combine two columns 3 37
can not add ASP.NET to IIS 8 26
Using MS Code on my Mac 6 44
ASP.NET e-commerce website 4 26
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now