I have homework activity and wondering if you could provide some advice

Hi guys I want to used a dialog box in vb.net to open a txt file, which contains single line of a few character like TFTFFTFT, and store it into array.

Then I will open another txt file and compare it content with the first txt file..
How can I go ahead with that. Thanks