I know locally it is possible to get file content line by line. just like
Scanner s = new Scanner(new File("D:\\Users\\qding\\Desktop\\spy.log"));
while (s.hasNextLine()) {
String line = s.nextLine();
System.out.println("[Method Server] " + line);
}
Is it possible to get file content from remote (Windows/Linux)?
Also, on the remote, the file was a log file, and it is updated always. So the second question is if is possible to file content continuously (with multiple thread?)?