Help for sorting

hi, I’m an 83 year old hobbyist,
I would like some help from someone to make me a program in CUDA, better in. exe.
I have many files.txt of strings of 5 numbers) example:
12 88 89 91 93 position 1

77 65 55 92 98 position 20000
66 67 90 91 97 position 10000000

they are random rows from 0 to 99 of about one billion strings of 5 numbers

The numeric string is a series of 5 increasing numbers from 0 to 99, such as:

11 77 88 98 99 position 1

33 67 91 92 98 position 1000000

I ask the program to find, if there are in the files, two strings supplied by me in sequence.

Example

09 32 40 85 99 815
08 12 31 40 91 816

in the attached file type the program tells me that it found them and me
writes them to a “result.txt” file with their relative positions. (file0.txt). If it doesn’t find them, it tells me “search failed”

Since the files are very heavy (one billion, often even 50 billion strings.
this kind of sorting in other languages ​​is very long as search times. This is why the CUDA
with its threads it saves a lot of time. I have a good pc with a lot of memory, a great processor, ryza. 64 gigabytes of memory

the program may search every 10 files at a time or less.
my mail: giuseppe.villamaina@libero.it