you can buy new lines but most of us just cut out the rusted area and replace it with new tube.

i had to cut my line in the driver side wheel well and in the same place by the pass side, then run a new line across the back of the car.

the compression fittings cost like 3 or 5 bucks for 2, and the line, 48 inches cost like 15. shorter lines cost less of course.

if you go with the compression fittings, sand the old tubing smooth and clean. then cut the pipe so the compression fitting slides on nice and easy. after its cut its a fight to sand it smooth. with fluid leaking out the end of it and all.

if you see a burr inside the cut edges, use a sharp knife and clean the inside out, you dont want metal chips in the caliper.