المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Reading a file under vista



C# Programming
04-03-2009, 09:03 AM
I have a file that I want to read, it's an RTF. I do this:

System.IO.FileStream fStream = new System.IO.FileStream(fileName, System.IO.FileMode.Open);

( I need a stream to pass to the WPF Rich Text control ). This fails with a permissions error, no matter where in the file system the file is. Any suggestions on how to make Vista work ?

Christian Graus

Driven to the arms of OSX by Vista.

"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )