Click here to Skip to main content
15,437,947 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Does anyone know how to write a program how can add , delete and read file from another computer in lan network

Thanks :)
Posted

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.
 
Share this answer
 
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.
 
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