• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 287
  • Last Modified:

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
0
BIAPRO
Asked:
BIAPRO
  • 4
  • 3
1 Solution
 
BIAPROAuthor Commented:
code is for .new  not VB6
thanks
0
 
BIAPROAuthor Commented:
i mean .net visual
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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
 
SStoryCommented:
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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now