在局域网中读取文件 [英] Read file in lan network

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

问题描述

有人知道如何编写程序,如何从局域网中的另一台计算机添加,删除和读取文件

谢谢:)

Does anyone know how to write a program how can add , delete and read file from another computer in lan network

Thanks :)

推荐答案

最简单的方法是在另一台计算机上共享,然后使用CreateFile API打开文件,文件名的格式为\\\\Machine name\\Share name\\File name.
The simplest way is to have a share on the other machine and then open the file using the CreateFile API with the filename in the form \\\\Machine name\\Share name\\File name.


是.但是,如果您试图编写一个执行此操作的程序并且需要帮助,则将不得不问一个更具体的问题,并为您的项目提供更多背景知识.例如,您尝试添加,删除和读取哪种文件?如果是类似于文本文件的文件,则需要研究
Yes. But if you are trying to write a program that does this and you need help, you''re going to have to ask a more specific question and provide more background on your project. For instance, what kind of file are you trying to add, delete, and read? If it''s something like a textfile you''ll want to research the System.IO.File[^] class. Once you get started, if you have trouble with your code please post it along with your error messages and an explaination of the problem and we can help you.


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

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