this is the bubble sort and what is needed is to print out from first place to fourth place and remmember every time the match is run the team changes. i am also putting an output file i have but it is not creating the text file.

You are thinking of a random access RW file, presumably for in-place updating, but for the size you have here it would be much easier to just read the whole file into a suitable collection/class structure at startup, and write the whole thing back out (overwriting the file) at shutdown.
There's no reason why you shouldn't be able to read or write the whole shebang as a single Collection object in a single statement.