I have a text file with the 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
将文件放在服务器上的共享文件夹中,并使用标准的Java IO引用该文件路径,例如\\\\<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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.