Using myFile As FileStream = New FileStream(ediWatchedFile.Text, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)
For example, it works on a VirtualBox COM port redirected to a file.
How to Read Locked file in VB or C# - BinaryWorld Blog [ ^ ]
FileShare Enum (System.IO) | Microsoft Learn [ ^ ]
  • Read the question carefully.
  • Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  • If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  • Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question. Let's work to help developers, not make them feel stupid.
  •