The testimony of witnesses is taken in three modes:
First. By affidavits.
Second. By deposition.
Third. By oral examination.
R.L. 1910, § 5067.