The old example is as simple as it gets. 8-) You need to define a new featureclass that is Z-aware so that you can iterate through the features, parts, vertices to extract the coordinates and then roll back the process to create new features from arrays.
If you have x,y,z points then the easiest way would be to use the tool PointsToLine to rebuild a series of lines.