I get a compile error of Newline in constant, but I don't see any issue with the code...can someone please point it out?
if (File.Exists(@"C:\Excel\Excel2010\Reports\" + workbookName[i] + "CompletedFiles\" + userName + ".xls"))
and my code highlights the ".xls" and gives a compile error of Newline in Constant. What is my issue?
C# Syntax Error
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Feb 7, 2013, 11:59 AM EST
richard smithRank #8,268 · 225 reputationPosted Feb 7, 2013, 11:45 AM EST
if (File.Exists(@"C:\\Excel\\Excel2010\\Reports\\" + workbookName[i] + "CompletedFiles\\" + userName + ".xls"))