To be really clear...
The missing line code
Filestream FS = new FileStream(filename,FileMode.CreateNew);
StreamWriter SW = new StreamWriter(FS);
This error occurs on:
StreamWriter SW = new StreamWriter(filename);
Sorry for the incorrect postings.... (worked a bit long on this.)
"Patrick Sannes" <pa*****@nospam.penan.nospam.nl> schreef in bericht
news:41**********************@dreader2.news.tiscal i.nl...
For the record. At this moment I use only the Streamwriter without a
FileStream, becouse when using the FileStream, i randomly was missing
lines in the files.
also buggy?
"Patrick Sannes" <pa*****@nospam.penan.nospam.nl> schreef in bericht
news:41**********************@dreader2.news.tiscal i.nl... Hi,
At this moment I have one large sourcecode file and want to seperate it
into multiple files. When I do so, the app crash after he created 6389
(156794880 bytes total) source files with the error:
Filestrem will not open Win32 devices such as disk partitions and tape
drives. Don't use \ \\\.\\\ in the path.
After I put in an exception handler and an breakpoint in it, i discovered
that the filename was a correct one. (just like the other 6389 files)
(I use the .net visual studio 2005 beta refresh.) Could this be a bug? Or
am I missing something.
Patrick