Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
hello,
i have 2 text files, one is small (file_1: about 200 lines) and the other is fairly large (file2: 12 k - 20 k lines).
file_1:
tango 12
beta 256
alpha 1700
tango 1200file_2:
tango 12
tango 125 hello world
beta 256
alpha 1700
Recent gama 5100 hi friend
Test charlie 502 hello dear
.......
....I need to remove lines in file_2 which contains file_1 entries.
ie. read line by line from file_2, compare with file_1 lines, if match , remove , else append to a new file.
mathces are exact string matches, both are text files.
output_file:
test tango 125 hello world
Recent gama 5100 hi friend
Test charlie 502 hello dear
.......
....
please help me code for this problem in java.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |