Hello, Welcome to Microsoft Q&A,
"Is there a way to read/write a file (txt) stored in internal storage in Unity?"
"Is there a way to access the local storage where the Unity program is installed via USB?"
If the "Unity program" means the MR app built from Unity, there is not any support to deploy to an external USB drive and they most go to the device main storage when deploying to the actual device.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.