Ordinary giraffes can't, but the Anarchic template bumps a creature's intelligence score up to 3 if it's not at least 3 already. A giraffe - or any other creature for that matter - with 3 intelligence should be able to read, write and speak. (Unless it's a barbarian, in which case it just speaks. Creatures with intelligence at least 3 can have class levels...)