1. A method for producing a nanocarbon resistor from a carbon nanotube, said method comprising: exposing a sector of the carbon nanotube to a metal halogen vapor for modifying electrical conductive properties of the carbon nanotube to resemble those of graphite, wherein said metal halogen vapor is a family II salt.