Not sure if I fully understand your question, but I'll give it a shot anyway:
Read the file using "Read Characters from File". You will have to then put the serial numbers into an array of strings, and the numerics into an array by converting them to fractionals from the strings. You will have to use a loop to scan each item from the file by looking for the separators (whitespace?) When completed, you should have an array of strings that matches an array of numerics. The numerics can then be operated on as you wish. As for swapping, I'm not sure what you mean.