The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

Re: getting files in the linux server

Originally Posted by Truffy

thanks very much. i will not yet press the solved because i have many interfaces in this program and i appreciate much of your help. thanks very much. ill post again soon the next issues i will encounter.

Re: getting files in the linux server

do you know about RMI? i really looking for the alternatives regarding my code. because it is so slow. reading files of 50MB size really makes it slow. I think if it tail it(hope there is a function for that) which means of knowing where in the file(line of file) it stops reading and when the file changes, the additional is the only one reads. do you kniow how will i code it?

Re: getting files in the linux server

If I uderstand your probelm, then you have no option but to download the entire file the first time. Once you have done that, you can count the number of characters within that file...I don't care how then perhaps you could use the following code as an example so you only have to download new snippets

Re: getting files in the linux server

Originally Posted by Freaky Chris

If I uderstand your probelm, then you have no option but to download the entire file the first time. Once you have done that, you can count the number of characters within that file...I don't care how then perhaps you could use the following code as an example so you only have to download new snippets

1. The scenario of it is: when the file change: the GUI will show for the first time, so it will show all the details in the a.txt.
2. When the a.txt change again, it will go to the REFRESH GUI, then in the ex.java, it will got to the else cndition and only shows the additional data in the a.txt.

Re: getting files in the linux server

Originally Posted by Truffy

I already solved it. but i got a problem when i get the count.

1. The scenario of it is: when the file change: the GUI will show for the first time, so it will show all the details in the a.txt.
2. When the a.txt change again, it will go to the REFRESH GUI, then in the ex.java, it will got to the else cndition and only shows the additional data in the a.txt.