errors="\n" IO.readlines("netboot65/inc/nb65_constants.i").each do |line| if line=~/NB65_ERROR_(\S*).*(\$\S\S)/ then code=$2 description=$1.gsub("_"," ") errors<<"\n" end end errors<<"
ERROR CODEDESCRIPTION
#{code}#{description}
\n" puts errors