Updates fat and writes text content