Dim tw As System.IO.StreamWriter = System.IO.File.AppendText("C:\NUL.txt")
The above statement will generate error like: "Filestream will not open win32 devices.... don't use \ "\\\.\\\" in the path"
Reason and Rectification:
Avoid using "CON" or "NUL" like filenames as they are reserved windows device names, you cannot use such words within a filename.
On this blog you will find general information & articles related to Microsoft .Net Programming and SQL Server tweeks. Please feel free to browse around the different articles and information of this blog. If you find any incorrect information in any of my papers or articles on this site, please let me know about it. I'll either make the necessary corrections or try to accommodate your comments and their resolutions in the paper.
Showing posts with label Filestream. Show all posts
Showing posts with label Filestream. Show all posts
Friday, February 6, 2009
Subscribe to:
Posts (Atom)