Splitting curves by surface

I would like to split a few curves by some intersecting surfaces. Could you please tell me how can I do that? 
For example in the following picture, I would like to split the curves by surface.

SolidworksSketching