Forums Login/signup

Comparing data in 2 files in different folders

+Pie Number of slices to send: Send
I am working on an app that download files from an sftp server...comparing things in a server and on a local machine got a bit too much for me! So i have decided to download the txt. files to a temp folder. What i am trying to do is compare the data newly downloaded txt file with the one in the local machine. So that if the contens of the files are the same i can do X if not Y. Any help! Ive tried hashCode() from java.io.File and lastModified() but those function calls refer to pathfilename and that is why i dont think the comparision is working for me.
+Pie Number of slices to send: Send
Can you read in the files and compare them?
+Pie Number of slices to send: Send
Please UseOneThreadPerQuestion. This is the same question as this one. I don't think Campbell, Ernest and Marc mind if I close this thread.

Reply locked
This thread has been viewed 1530 times.
Similar Threads
Download multiple files
Download file on client machine by user request
File Download/Upload to remote server Path problem
Help needed to compare timestamp
Trying to upload a file through jscape sftp API in java and not able to set the default directory
More...

All times above are in ranch (not your local) time.
The current ranch time is
Jun 28, 2025 22:44:04.