c# - Receiving CS1010 Newline in constant when creating a path to a file -
hello getting paths dynamically , trying concatenate path file getting email crawler.
for example c:\this\is\anyexample.txt <<< intended goal
getpath() returns string = c:\this\is
attachment returns string = anyexample.txt
in code doing , following
var path = getpath()+"\"+ attachment
>>error>> cs1010 newline in constant
however need "\" in order complete c:\this\is\anyexample.txt
this achieved using "\\" when trying create path
Comments
Post a Comment