YOu use a special file that has teeth cut on only one bias, or angle to the length of the file. These files are known as " single cut", or " Draw files", and are different from "Cross-cut files".Cross cuts are used to hog off a lot of metal very quickly.
If you put it across the work you are going to file, the angle of the teeth becomes similar to a snowplow blade in relationship to the length of the stroke. You push the file forward to cut, the file at right angles to the stroke, then lift it up, take it back and put it back down on the surface, and push forward again. In between cuts, most people will stop and use a file " Card ", to brush the bits of steel out of the teeth of the file. Some also use chalk to fill the gaps between the teeth, because this keeps the filings from gettin locked between the teeth, clogging the file, and scratching the surface with the next stroke.
Draw filing is finishing work, and produces a fine, finished, smooth surface that is ready for further reduction if desired, using emery cloth in various grits, down to emery papers, again, available in various grits. Crocus cloth would be the finest cloth available for polishing metal, and after that, you would go to rottenstone, or fine pumices. Then you use these fine compounds and oil to get an even smoother, mirror like surface, if desired.
A trip to a good hardware store, and some time asking " dumb questions" of the clerks about what kinds of grits in paper and other compounds will gain you much knowledge. You can do the same by visiting tool providers, like Harbour Freight, Or Mc Masters, or
Woodcrafts.com. There are others, of course.
I hope this helps.