generally if you want to use 2 different apps store the file using the first app in shared directory /Download or /Documents, see also the overview
and read the file using the second app as @vknow360 already said using the SAF extension
however if I understand you correctly, you are talking about only one app, but 2 different versions... which means, you can store the data in TinyDB and after installing version 2 of the same app the data in TinyDB still will be there...
Taifun
Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by
Taifun.