Sometimes it could be
C:\\Users\\Mammamia\\Videos\\Documents\\CFD\\geo_msh\\cubeOp.txtOR
C:\Users\Mammamia\Videos\Documents\CFD\geo_msh\cubeOp.txtWhen we want to use this and why you want to do that ?
C:\\Users\\Mammamia\\Videos\\Documents\\CFD\\geo_msh\\cubeOp.txtOR
C:\Users\Mammamia\Videos\Documents\CFD\geo_msh\cubeOp.txtWhen we want to use this and why you want to do that ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Nov 14, 2013, 9:21 AM
As far as C# is concerned, if the file path is included in a string, then you need to double all the backslashes or precede the string with @. This is because \ is used as an escape character as in \n, \t etc. So you need to double it if you're using it with its 'natural' meaning.
Posted Nov 14, 2013, 2:50 PM
When you writing any path in C# then you can write single slash for that you need to place @ symbol before your path e.g.
string strPath=@"C:\Users\Mammamia\Videos\Documents\CFD\geo_msh\cubeOp.txt";
if you got the answer then please like it.
Thanks