19. Evidence on the hearing of the petition shall be given orally:

Provided that the court may, on application made to it before or at the hearing, direct that any particular fact alleged in the petition or answer may be proved by affidavit.