Subject to such additional conditions as the court may provide, a deposition shall be taken and filed in the manner provided in civil actions except as otherwise provided in this title; provided that:
The prosecuting attorney shall make available to the defendant or his counsel for examination and use at the taking of the deposition any statement of the witness being deposed which is in the possession of the prosecuting attorney and to which the defendant would be entitled at the trial.
SDCL 23A-12-4