I am assuming you mean Heat Treat, not just Temper.
The trouble with old files for knife blades is trying to determine the proper HT procedure......which varies depending on the steel type the file was made from. Some of them were also made from mild steel with a surface(case hardening) treatment done to make the teeth hard.
But, assuming you have a file made from high carbon steel.......which is fairly likely, and you'd like to make a knife from it. Here is the basic procedure.
1-Shape the blade either by forging or grinding........if you choose to grind, or file, the blade to shape, you will find it very helpful to anneal the file first. Heating to dull red and cooling slowly will do a half rate redneck job of annealing most simple steels........for a full anneal, it is more complex.
2- Harden the blade. This is accomplished by heating the blade as evenly as possible to the transformation temperature. You can judge this fairly close by using a magnet and testing the steel with it as it heats up. When the magnet quits sticking, go just a shade brighter and then quench(dunk the blade) in warmed up oil or water. Try the oil first as water(or brine) can cause the blade to crack. Some steels require a faster cooling quench than most commonly available oils will do, in which case you will need to use water or salt water(brine). I use canola oil, it's non toxic and has a fairly fast quench speed.
3- assuming you now have a hard blade, it is too brittle for use. Now you need to TEMPER the blade to a useful hardness........ideally hard enough to hold a good edge and soft enough to not be brittle. The hardness that is ideal depends greatly on the edge geometry and also on the steel type. But the basic idea is to heat the blade up to anywhere from 350 to 500 degrees f and let cool to room temperature. Repeat the temper twice and each temper heat should be at least 2 hours. To nail the correct hardness, try the lower heat first, then sharpen and test the blade. If the edge chips easily, temper again at maybe 25* hotter and try again. Repeat until the blade performs to your expectations.
This is the very condensed and simplified version.
Best of luck,
Darcy