Please see the example below.
Dim privkey As New privateKey privkey.LoadXml privateKeyXml
Longo = privkey.SavePkcs8EncryptedFile("cavalo", "ChavePrivada.pem")
quetion: the "privateKey.pem" and "ChavePrivada.pem" are the same, better, the string signed by both are equal ?
The different methods are simply providing the ability to store the same private key in different file formats.