Article 865 of the French Code of civil procedure
The judge in charge of investigating the case may order, even ex officio, any investigative measure. He decides on any difficulties relating to the communication of documents. He declares the proceedings terminated. In that event, it shall, if appropriate, rule on the costs and claims made pursuant to Article 700.