Don't know the size of the line, but you will need a double flaring tool to replace rusted line segments. Compression fittings are not safe to use on brake lines. Take a piece to the parts store and they can help you out. Besides the tool, tubing cutter, male ends, etc. All in all way less expensive than having someone else do it, and you have the tools to lend out to buddies for life!!!
P.S. soak the connections with wd40 or whatever and keep them wet for a day or two before you try to crack them loose.