If you have a partition set as linux swap, it should be automatically detected and used unless you specify "noswap" as a kernel option. I'm not sure how swap files are used.
You create a swap partition with a tool such as fdisk, cfdisk, or some other partitioning software...the application should give you a hint as to what type of partition is used as swap.