On the Fokker 100 the black painted line is used as a ice detector, when the Ice builds up on the leading edge it is easily detectable against a black strip of paint on the wing, it is also a manuel back up for the icing alert system in the cockpit.
I presume this is the same for most other jets where there is a black strip of paint on the wing
cheers
fc