Analog Port as 5V?

i would like to keep the external parts to an minimum, but that'd be doable. just a very stupid question - how to use a transistor?! never done that before..