Write using text mode