How Can I Reset The File Pointer to the Beginning of the File in Java?

前端 未结 10 1468
孤城傲影
孤城傲影 2021-02-19 20:17

I am writing a program in Java that requires me to compare the data in 2 files. I have to check each line from file 1 against each line of file 2 and if I find a match write the

10条回答
  •  一个人的身影
    2021-02-19 20:54

    well, Gennady S. answer is what I would use to solve your problem.

    I am writing a program in Java that requires me to compare the data in 2 files

    however, I would rather not code this up again.. I would rather use something like http://code.google.com/p/java-diff-utils/

提交回复
热议问题