如何在局域网中同时读写文件? [英] How to read and write concurrently to a file in LAN?

查看:62
本文介绍了如何在局域网中同时读写文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
有一个局域网共享文件,如何同时读写文件?就是说:局域网中不同机器上的多个程序可以同时读写文件.

谢谢.

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.

推荐答案

与任何其他文件相同.您只需要打开文件即可进行共享读/写访问.

当然,您将必须牢记同时读取正在写入(或覆盖)的文件会给您的代码带来问题的可能性.但是,如果可能的话,还取决于您的代码在做什么以及您的要求.
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.


这篇关于如何在局域网中同时读写文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆