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. :)

No problem Truffy. I'm glad I can help.

June 10th, 2009, 10:15 PM

Truffy

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?

Are you looking to make the program print out only the changes in the file? You are still going to need to download and parse the entire log file atleast once.
I'm not sure how to speed this up!

yup i need to printup the entire log and the next steps is to print only the changes on the file. but still it shows the other read data. which it will only append the changes in the file.

June 16th, 2009, 09:15 AM

Freaky Chris

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

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

the boolean on is not working. So it is always reading the whole file. please help.

June 19th, 2009, 11:19 AM

JavaPF

Re: getting files in the linux server

Hey Truffy.

In the TruffyLog class, try changing:

Code :

public static boolean isOn() {
[B]return on;[/B]
}

to

Code :

public static boolean isOn() {
[B]return true;[/B]
}

June 21st, 2009, 11:01 PM

Truffy

Re: getting files in the linux server

Quote:

Originally Posted by JavaPF

Hey Truffy.

In the TruffyLog class, try changing:

Code :

public static boolean isOn() {
[B]return on;[/B]
}

to

Code :

public static boolean isOn() {
[B]return true;[/B]
}

Hi,

Good morning JavaPF.

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.

But the prob is, it didn't show in the GUI. It is balnk. :(

June 22nd, 2009, 06:36 AM

JavaPF

Re: getting files in the linux server

Quote:

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.