OPEN A TEXT FILE ON SBS2008 SERVER IN SHARED MODE WITH VB6

In a accounting system in VB6 I need to write a log for every posting to a appending text file, plain ascii
I want to keep the file open in the program, due to closing and open the file on
every report line would I believe ,  give to  much load on server (open/write/close)
But:
multiple users has to add lines to the same file.
What would be the best/save aproach to do this in VB6
BIAPROAsked:
Who is Participating?
 
SStoryConnect With a Mentor Commented:
My second answer was for vb6

In those days you could use the OPEN statement with a sharing option in read mode to do it.
I would need the vb6 help file to get the exact syntax, but this how to do it.
0
 
BIAPROAuthor Commented:
code is for .new  not VB6
thanks
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
BIAPROAuthor Commented:
i mean .net visual
0
 
SStoryCommented:
Open "log.txt" For Input As #1

There is a share keyword in there somewhere. I don't have a reference manual to find it.
You want to tell the open command to open it shared and read.
0
 
BIAPROAuthor Commented:
I've requested that this question be deleted for the following reason:

got advise to place this in VB zone
0
 
BIAPROAuthor Commented:
It was for VB6 , but given answer was for vbnet, so could untill now nothing do with
this request
Regards Jack
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.