Friday, May 10, 2013

Open file as read only

There are two totally different thigns here:


1. Open a File read only.


2. Start a Process


The two have nothing and absolutely nothing to do with one another!


To 1::


http://peterkellner.net/2009/12/07/csharp-streamreader-readonly/


Another solution is this, wich may allow you to even open Files for reading if they are already opened R/W by soem other process:


http://stackoverflow.com/questions/897796/how-do-i-open-an-already-opened-file-with-a-net-streamreader


To 2: I have no idea how do you think ProcessStartInfo comes into this.


You should go one step back and tell us what problem you think this will solve. Because you are very likely on the totally wrong track.




Let's talk about MVVM: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/b1a8bf14-4acd-4d77-9df8-bdb95b02dbe2


No comments:

Post a Comment