/* Create an alphabet for HTML files */ /* Display blank line */ Say /* Initialize RexxUtil library */ if RxFuncAdd( 'sysloadfuncs', 'RexxUtil', 'sysloadfuncs' ) = 0 then do call sysloadfuncs end else do call Syntax "Could not initialize RexxUtil." end /* Check command line parameter */ Parse Arg html dummy . If dummy <> "" Then Call Syntax "Please specify only 1 HTML file." If html = "" Then Call Syntax "Please specify an HTML file." If Pos( "?", html ) > 0 Then Call Syntax /* Check if file exists */ Call SysFileTree html, files. If files.0 = 1 Then Do Parse Value files.1 with . . size . html html = Strip( html ) End Else Do Call Syntax "Specified file not found." End /* Check extension of specified file */ lmth = Reverse( html ) Parse Upper Value lmth With txe"."eman"\". If Right( txe, 3 ) <> "MTH" Then Call Syntax "Please specify HTML files only." /* Define output file name */ alph = Reverse( eman )||".SRC" /* Check if file exists */ Call SysFileTree alph, files. If files.0 <> 0 Then Call Syntax "Output file already exists." /* Create output file */ Call LineOut alph, "" /* Check if file exists */ Call SysFileTree alph, files. If files.0 <> 1 Then Call Syntax "Error creating output file." /* Read HTML file into 1 single string */ strHTML = CharIn( html, 1, size ) /* Create table header */ Call LineOut alph, '