Hi everybody,
actually i am new to Java,
and i would like to write a program that to find who is a copycat,
for example, i get six txt file, all of these are juz put inside a folder,
i guess i should get all the txt file to array,
but i can only read these one by one,
how can i get the txt files like get all txt in the folder?
and also how to compare the different between the txt file?
billy leung
0
Newbie Poster
Recommended Answers
Jump to PostYou will eventually have to read them.
You can make a checksum on the files content. If the checksums are different they are obviously not equals. If the cheksums are the same then no choice than comparing them line per line.
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.