Logfiles VB.NET

J

Johnny E Jensen

Hello

I have made a tool in VB6 to track users logging into our RAS Server.
The tool opens the logfiles made by the RAS Server. To read the logfile i
use scripting textstream. It works fine.

Now I want to make the same tool in VB.NET using System.IO.StreamReader or
the FileStream. I get the error : Can't Open File - because it is being used
by another process.? How can i open that file in vb.net?

Kind regards
Johnny E Jensen
 
V

vbnetdev

Try This

fs = File.Open(FILE_NAME, FileMode.Open, FileAccess.Read, FileShare.Read)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top