exportToFile

external fun exportToFile(index: Int, path: String): Int

Export the route to the given file.