943,777 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 334
  • VB.NET RSS
Jun 2nd, 2009
0

Hi friends

Expand Post »
I need a small code that can read a text file from LAN i.e. through IP address and there is no sharing folder on that pc

is it possible to read a text file read and write on the same time by more than 2 pc
Please help
Similar Threads
Reputation Points: 10
Solved Threads: 1
Junior Poster in Training
pardeep3dec is offline Offline
87 posts
since Jul 2008
Jun 3rd, 2009
0

Re: Hi friends

Hi,
Looking at your question I am not sure that it will be possible to do what you want. At least not without first setting up a shared folder unless you plan on connecting to the other computer via another protocol such as FTP (Meaning that you would need an FTP server to be active on that machine).
If you did set up a sharing folder or a network share then you would still need to use the full network address (if it is static, if it is changing then it will make life even more difficult).
Standard read/Write of a file in VB.NET is pretty simple however I have not tested more than one simultaneous operation by more than 1 computer yet... So if anyone knows the answer to that then please let us know lol.
What is the purpose of this piece of code? There may already be a program or otherwise out there already that can help you to solve this problem.
Sorry I cannot be much help but if you need a hand with reading/writing to a txt file in VB.NET then just let me know and I'll send you some code.
ParkeyParker
;-D
Reputation Points: 10
Solved Threads: 2
Newbie Poster
parkeyparker is offline Offline
16 posts
since Apr 2009
Jun 3rd, 2009
0

Re: Hi friends

Quote ...
I need a small code that can read a text file from LAN i.e. through IP address and there is no sharing folder on that pc
May I ask why you want to do that?

Quote ...
is it possible to read a text file read and write on the same time by more than 2 pc
No. You can open a file in ReadWrite mode but it has to be in the same process
VB.NET Syntax (Toggle Plain Text)
  1. Dim f1 As New System.IO.FileStream("D:\test.txt", FileMode.Open, FileAccess.ReadWrite)
Object f1 can be both read and be written but not from any other process (i.e. second PC).
Reputation Points: 218
Solved Threads: 201
Veteran Poster
Teme64 is offline Offline
1,024 posts
since Aug 2008
Jun 4th, 2009
0

Re: Hi friends

It is not possible to write at the same time , you can read the file at the same time.
Reputation Points: 769
Solved Threads: 128
Banned
ithelp is offline Offline
1,910 posts
since May 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: [Help]Handle trigger
Next Thread in VB.NET Forum Timeline: insert value 000011 into sql database





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC