Hi friends

Please support our VB.NET advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jul 2008
Posts: 55
Reputation: pardeep3dec is an unknown quantity at this point 
Solved Threads: 1
pardeep3dec pardeep3dec is offline Offline
Junior Poster in Training

Hi friends

 
0
  #1
Jun 2nd, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 10
Reputation: parkeyparker is an unknown quantity at this point 
Solved Threads: 0
parkeyparker parkeyparker is offline Offline
Newbie Poster

Re: Hi friends

 
0
  #2
Jun 3rd, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 710
Reputation: Teme64 will become famous soon enough Teme64 will become famous soon enough 
Solved Threads: 115
Teme64's Avatar
Teme64 Teme64 is offline Offline
Master Poster

Re: Hi friends

 
0
  #3
Jun 3rd, 2009
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?

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
  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).
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,867
Reputation: ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all 
Solved Threads: 120
ithelp's Avatar
ithelp ithelp is offline Offline
Posting Virtuoso

Re: Hi friends

 
0
  #4
Jun 4th, 2009
It is not possible to write at the same time , you can read the file at the same time.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum


Views: 193 | Replies: 3
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC