the short answer is that swapfiles are the place where virtual memory is stored, it's referenced in pageins/pageouts. In general, the system takes care of virtual memory, although it's a bit complicated you can move the file to another disk, for instance.
paul