How to split a sheet of exercises in different files, one file containing just one exercise?

I have a big file having the following structure :

\begin{exo}
...
\end{exo}

\begin{exo}
...
\end{exo}


My aim is to create different files containing just one exercice. How can I do this ? Does there exist a software ?

You could use standard latex functionality such as the import libraries and manually split up exercises into individual files. And then use either import with relatives paths via subimport, use just use the full path.