Scripting Question about creating files

 From:  Teddy Lindsey (TEDDYLINDSEY)
9665.1 
Michael,

A while back you provided some very useful scripts that snapshot the 3D viewport, recording the camera and target positions to an in-memory stack. Unfortunately, there's no way to persist the stack.

I'm working on a script/UI that shows a list of the saved views, allows for renaming the views and ultimately can save the views to a file so they persist.

So my questions are:

Q: does the moi.filesystem object provide the ability to read/write arbitrary files that I can store the array of views in?

Q: is there a way to embed data such as the array of saved views directly into a 3DM file?

Thank you,
Teddy