PDA

Click to See Complete Forum and Search --> : Opening data files in VB


Zvonko
Jan 25th, 2000, 06:16 PM
Hello!

I have data file called data.txt and 2 programs must access it's data at the same time.
Is it possible to do that and if it is how can I do that?

Regards
Zvonko

Jan 25th, 2000, 08:45 PM
When you start your program, open the file and read the contents into an array or a variable. Then close the file.

------------------
Boothman
There is a war out there and it is about who controls the information, it's all about the information.

Jan 25th, 2000, 10:12 PM
In what way do you open the file? is it a normal text file you open for input or somekinda database?

If you open it for input or binary/random try something like this: Open "c:\data.txt" For Input Access Read Shared As #1

------------------

Vincent van den Braken
EMail: azzmodan@azzmodan.demon.nl
ICQ: 15440110 (http://www.icq.com/15440110)
Homepage: http://www.azzmodan.demon.nl

Zvonko
Jan 26th, 2000, 02:06 AM
Hello!

First thank you guys!
And the file I use is text file.