As long as Filepos222.txt has "0\n0" as its file contents, this is working code for finding all BUIDs in the file.