Allan McLemore
1/10/2003 6:40:00 AM
Hey,
I'm reading a stream of data from a TCP network stream.
The type of data is a fully qualified path to a file
which I try to open. The error I'm getting is:
"Illegal characters in path."
Here is the code:
string file = System.Text.Encoding.Unicode.GetString
(buffer);
// shows C:\Documents and
Settings\Administrator\Desktop\file.txt
MessageBox.Show(file);
// error here:
fileStream = new System.IO.FileStream(file, FileMode.Open);
I've tried .ToString() to the string file before using it
but no luck.
Any ideas what's going on ???
Thank you,
Steve.