Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import algorithm, os
- var
- psp: array[100_000_000, string]
- index: int
- file_cur = open("cur.csv")
- file_new = open("new.csv")
- index = 0
- for line in file_cur.lines:
- psp[index] = line
- index += 1
- sort(psp, system.cmp[string])
- index = 0
- for line in file_new.lines:
- if binarySearch(psp, line) == -1: echo line
- file_cur.close()
- file_new.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement