0

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

kiran kumar
  • 19
  • 1
  • 2
  • 4

2 Answers2

1

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.

jornb87
  • 1,441
  • 10
  • 15
0

You could copy the file to your local machine and read it from there.

This answer could help you do it.

Community
  • 1
  • 1
Simeon
  • 7,582
  • 15
  • 64
  • 101