Implement WriteLpFile