Hello, you need to escape your \ by doing \\. So, it'll look like: C:\\myfolder1\\myfolder2...----- Original Message ----- From: "Celia Rodriguez" <celia-rodriguez@xxxxxxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx> Sent: Friday, May 07, 2010 8:15 PM Subject: C# Writing to a file
Hi Varun, I tried writing to a file, but the comiler does not like the ? \. The following is what I coded. File.AppendAllText(C:\Documents and Settings\celia\My Documents\VisualStudio\Projects\TestCode,Data);It gives me an error on the \. Do you know what I need to do so it will except the \? Thanks, Celia __________View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________View the list's information and change your settings at //www.freelists.org/list/programmingblind