473,396 Members | 1,805 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Logfiles VB.NET

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
Apr 14 '06 #1
2 1388
Try This

fs = File.Open(FILE_NAME, FileMode.Open, FileAccess.Read, FileShare.Read)
--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com

"Johnny E Jensen" <je*@winner-crm.dk> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
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

Apr 14 '06 #2
Hello
Sorry to say, that has been tryed, with no luck.

Any one else??

"vbnetdev" <vb******@community.nospam> wrote in message
news:eV**************@TK2MSFTNGP02.phx.gbl...
Try This

fs = File.Open(FILE_NAME, FileMode.Open, FileAccess.Read, FileShare.Read)
--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com

"Johnny E Jensen" <je*@winner-crm.dk> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
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


Apr 16 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Courtis Joannis | last post by:
Hello readers, my name is Joannis Courtis and I study computer science in Frankfurt/Germany. I hope you can help me, because I try to find a script that helps me to filter logfiles which I...
0
by: richardb | last post by:
--=_alternative 002B892D48256D5E_= Content-Type: text/plain; charset="us-ascii" Is it possible to manually delete the logfiles created in innodb tables and then do a 'touch logfilename' to...
4
by: deprins | last post by:
Hello, I have run into some problems with logfiles and backup logfiles (MS SQL server). I have read much about them but uptil now I dont seem to grasp how it works. Specially the part of working...
1
by: A.M. de Jong | last post by:
Hi, Everytime a job starts it puts logging into the system (application) logging files. (Messages) How can I prevent SQL from doing that. Arno de Jong, The Netherlands.
1
by: Oliver Spiesshofer | last post by:
Hi, I switched the server my webpage was hosted on and now the logfile format is different. the old one are daily logfiles, in the format mydomain.net.access_log.01Feb2004 now I would...
1
by: malla | last post by:
Hi Any one help me what are actually logfiles why to take backup? why to restore? when to restore? Advance thanks
2
by: Xagon | last post by:
Hi, I'm a newbie to C#, so forgive me if this is a dumb question. What I want to do is parse a directory of IRC logfiles and dump all the .jpg and .gif links to a text file. If I could get a...
2
by: jabernet | last post by:
We decided to root for a backup strategy using online incremental backups which include the log files (avail since DB v8.2). Now I wondered, if DB2 automtically deletes the archived logfiles after...
0
by: Knokmans | last post by:
My config: - using DB2 v9 linux/intel non-partioned - logarchive is done by userexit - archived logfiles are cleared from disk after x hours - no backups are taken from this database, because we...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.