Been searching a while and can't seem to find any answer to my problem. I want to be able to open a file which is already in use. This is the code I use to open the file with:
OpenFileDialog openFile1 = new OpenFileDialog();
openFile1.Filter = "Text Files|*.log";
openFile1.Multiselect = true;
openFile1.Title = "Open log files";
if (openFile1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
richTextBox1.LoadFile(openFile1.FileName, RichTextBoxStreamType.PlainText);
_textArray = richTextBox1.Lines;