Article 678 of the French Code of Criminal Procedure
If the act committed is a crime, the court or tribunal, after having the perpetrator arrested, questions him and draws up a report of the facts; this court transmits the documents and orders the perpetrator to be brought immediately before the competent public prosecutor, who requests that an investigation be opened. .