Pass string to file

Does anyone have any insight on how I can pass a string to a file so the browser opens the default calendar application?
I have a library that generates iCalendar information, I take the instance and toString it, then I need that passed to a .ical file.
There does not seem to be a Corvid based solution.

Corvid does not allow access to the device’s applications due to security considerations.

Feel free to visit the Wishlist Page which is the official platform for requesting new features. You can vote, comment, and track the status of the requested features.

Depending on your requirements, you might be able to accomplish what you want by accessing 3rd party services. See the article Corvid: How to Access 3rd-Party Services with the Fetch API .

Thank you kindly