Use a string buffer for IO.

SNMP is incredibly slow. To avoid pauses in the display of information I
currently perform the SNMP operations separately to the output. Using a
string buffer means I won't need to do this and can just output the
contents of the string buffer when done.