How to read a text file from a remote server location
I have a text file with th开发者_如何学运维e name textfile1.txt in C: location and this file conatains in a server machine and the machine ip is 1.127.0.0,
I want to read this text file in my java application and display the content,
Please help me in this,
Thanks in Advance,
Thanks, Kiran
Put the file in a shared folder on the server, and use standard java IO to reference that filepath, e.g. \\<your server ip>\shared\textfile1.txt
.
You could copy the file to your local machine and read it from there.
This answer could help you do it.
精彩评论