public void WriteHistory(ReplyHistory history) { using (var file = streamFactory.GetWriter(this.CommentIdFilePath)) { foreach (string commentId in history) { file.Write(" {0}", commentId); } } }