Splines, reading and converting to polylines ?

Does anybody have an algorithm to read splines and convert them to line pieces?

Or better, convert them to ARC’s with linepieces?