/// <summary>
/// Converts an ASCII string to hex formatted lines.
/// </summary>
public static string AtoX(string asc)
{
int nLines;
int nChars;
int offset;
string hex = "";
// Compute number of hex lines.
if((asc.Length % 16) > 0)
nLines = asc.Length/16+1;
else
nLines = asc.Length/16;