116. Evidence on an application for an order and at the hearing of an action shall in general be given by the oral examination of witnesses; but the mode or modes in which evidence shall be given, either on any application or at the hearing of an action, may be determined either by consent of the parties, or by direction of the Court or Judge.