title: Reading files in C# Mono Debian not working
body: <p>I'm using MonoDevelop on Debian, I've problem with following piece of code:</p>
  
  <pre><code>using (StreamReader sr = new StreamReader(File.Open(e.FullPath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)))
  </code></pre>
  
  <p>It is working fine in Windows and fine when run through MonoDevelop. But if I run it like <code>mono output.exe</code> or sudo <code>mono output.exe</code> first time method with this code is called it works fine. But second time it fails. It don't write anything no exception is thrown. I've also tried replacing <code>using</code> by <code>try catch finally</code> but no exception is thrown. I think that it just cannot read the file.</p>
  
  <p>Method with this code is called by FileSystemWatcher change event. And I'm changing the file through VIM.</p>
  
  <p>Any ideas how can I find out where the problem is? Why in MonoDevelop it works just fine (so I cannot trace it) and if run from Terminal it works just for first time (the method is called always but file is not read and no exception is thrown it does not even enter inside using{ }).</p>
  
  <p>Thanks!</p>