Fernando Skackauskas wrote:
fis = new java.io.FileInputStream ("file.txt");
However, this "file.txt", is on a remote machine, where I have the IP address = 18.104.22.168.
How do I "pass" this file by IP address? In other words, it would be something like this:
fis = new java.io.FileInputStream ("22.214.171.124:\c:\arquivo.txt"); ???
I have no idea how to solve this.
The FileInputStream class is used to open a file in the file system. So, to access the file system on another machine, you need a networked file system. How do you access the file, on your machine, without Java? Once you figure that out, then you can do it the same way in Java.