Classical NiTi files are milled on CNC machines. Electrical Discharge Machining (EDM) uses spark erosion, which hardens the surface of the NiTi file, resulting in superior fracture resistance and improved cutting efficiency. Repeated bombardment of the alloy with sparks melts the material and even leads to evaporation in some places.