Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8122267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:46:55+00:00 2026-06-06T05:46:55+00:00

I know locally it is possible to get file content line by line. just

  • 0

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?)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T05:46:57+00:00Added an answer on June 6, 2026 at 5:46 am

    A1. Yes it is possible to get file content from remote system, provided it is accessible over any protocol.

    A2. On unix systems, to read content of a file that is changing continuously, we have tail -f ... command. Please refer to File Monitoring. And to read such files over network, you definitely require help of Threads to wait and read the updates. Apache commons has custom tail implementations that may help you.

    You can refer to a similar posting on SO, for detailed suggestions and discussions.

    Update:
    A2: For windows, there is a third party GUI tool Tail for Win32, but never I worked on it.
    You can also refer to some more suggestions at Windows … equivalent of “tail -f”?.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to know if it is possible to write a bit of javascript
I just uploaded working site files to a new server which I know is
Know if it's possible to access the iPhone compass in Safari using JavaScript? I
Anyone know if it is possible to make the PeriodicalUpdater pass the data it
I'd like to know how to communicate between processes on a Heroku worker dyno.
I want to know if it's possible to scroll to a given id in
I use Lucene locally to index documents. I know how to use Lucene pretty
I hope I'm explaining this as accurately as possible, and I want to know
We have currently just master branch. Our current workflow involves implementing the features locally,
I know it's possible, and I've looked at numerous examples. And I'm afraid I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.