I\'m attempting to write a program that will generate a text file with every possible permutation of the alphabet from one character up to twenty-nine characters. I\'ve chosen 2
just off the top of my head (PHP).
$index = 0;
while(1) {
$output_string = '';
$base_26 = (string)base_convert($index, 10, 26);
if (strlen($base_26) > 29) break;
for ($i = 0; $i < strlen($base_26); $i++) {
$output_string .= chr(65 + base_convert($base_26[$i], 26, 10));
}
$index++;
echo $output_string;
}