Results 1 to 4 of 4

Thread: Opening data files in VB

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 1999
    Location
    Ilirska Bistrica, Slovenia
    Posts
    242

    Post

    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

  2. #2
    Guest

    Post

    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.

  3. #3
    Guest

    Post

    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
    Homepage: http://www.azzmodan.demon.nl




  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Aug 1999
    Location
    Ilirska Bistrica, Slovenia
    Posts
    242

    Post

    Hello!

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width