i have a ini file containe a line
FromPath=@"D:\Program Files"
i want to read this so,
System.IO.StreamReader objReader;
objReader = new System.IO.StreamReader(FileName);
do
{
txtline=objReader.ReadLine().ToLower().ToString();
if (txtline.IndexOf("frompath")>-1)
FromPath=txtline;
}while (objReader.Peek() != -1);
when i read the line i'll have it like this
"frompath=@\"d:\\program files\""
how can i replace \\ to \
and \" to "
???
FromPath=@"D:\Program Files"
i want to read this so,
System.IO.StreamReader objReader;
objReader = new System.IO.StreamReader(FileName);
do
{
txtline=objReader.ReadLine().ToLower().ToString();
if (txtline.IndexOf("frompath")>-1)
FromPath=txtline;
}while (objReader.Peek() != -1);
when i read the line i'll have it like this
"frompath=@\"d:\\program files\""
how can i replace \\ to \
and \" to "
???