This question relates to the use of police diaries and case records by an investigating officer (IO) while giving evidence in court. Section 172(3) of the CrPC states that neither the accused nor their agents are entitled to call for such diaries. However, Section 159 of the Indian Evidence Act allows a witness to refresh their memory by referring to any writing made by themselves at the time of the transaction. In the case of State of Karnataka v. Yarappa Reddi, the Supreme Court reconciled these provisions and held that an investigating officer has the right to refer to their case diary and other records of investigation to refresh their memory while deposing in court.