Pem.FileFromBinFile Method
Create a PEM file from a binary file with option for line endings.
Syntax
[C#]
public static int FileFromBinFile(
string fileToMake,
string fileIn,
string header,
int lineLen,
bool unixEOL
)
[VB.NET]
Public Shared Function FileFromBinFile ( _
fileToMake As String, _
fileIn As String, _
header As String, _
lineLen As Integer, _
unixEOL As Boolean _
) As Integer
Parameters
- fileToMake
- Name of PEM file to create
- fileIn
- Name of input binary file
- header
- Header to be used. Leave empty to omit the PEM header and footer.
- lineLen
- Maximum length of a line in the resulting PEM file [default = 64 characters]
- unixEOL
- Set true for Unix/SSL LF line endings [optional, default = Windows CR-LF endings]
Return Value
Zero if successful; otherwise it returns an
error code
See Also
VB6/C equivalent: PEM_FileFromBinFile
[Contents] [Index]