Dieters who wrote down everything they ate had twice the weight loss of other people following the same diet. Karen Hopkin reports