View Single Post
Old Apr 7th, 2008, 8:33 AM   #7
Jabo
Not a user?
 
Join Date: Sep 2007
Posts: 272
Rep Power: 2 Jabo is on a distinguished road
Re: C# Stream Problems

Quote:
Originally Posted by BstrucT View Post
StreamReader readnow = new StreamReader
                    (@"C:/"
                    + txtOpenName.Text);
I've never seen or used this before, is it a requirement for C#? Is that a regular expression of some kind?

Quote:
Originally Posted by BstrucT View Post
\Documents and Settings\User\My Documents\Synaps Files\Synaps
I would assume it's because you're not escaping your backslashes, but I don't know if that's necessary in C#
Also, you use a forward slash in your new filepath...technically that shouldn't work I think.
Jabo is offline   Reply With Quote