Click here to Skip to main content
15,905,420 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone,
There is a local area network share files, how to read and write concurrently to the file? That is to say : Multiple programs on different machines in the LAN can simultaneously read and write the file.

Thanks.
Posted

1 solution

Same as any other file. You just have to open the file for Shared Read/Write access.

You will, of course, have to be mindful of the possibility that reading a file that is being written (or overwritten) at the same time can give your code a problem. But, if that's even possible depends on what your code is doing and your requirements.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900