Hi,
Sorry but no, this library is not opensource, I was giving you the ideas behind a component of it.
About the file vector, it's definitely useful and well thought but:
* Writing frequently might not be good for the flash (but we haven't found any proof to support that).
* There really is no point in making everything static. It would be useful to have more than one instance of your file vector. You could drop the static and allow some constructors like: PersistantVector( String fileName, int frameSize );
* It uses a fixed-width 256 bytes cell. Which means 4 elements consumes 1KB. This isn't space efficient and if you do need to save a string of 2000 chars you need to increase this to at least 2000 (hoping you won't use unicode chars). I think storing the space of each element before writing it would be a lot more space efficient. If you need to quickly append data, you could keep the end offset in the beginning of the file.
Currently it's:
[int: number of elements] [256 bytes: element 1] [256 bytes: element 2] [256 bytes: element 3]
You could have:
[int: number of elements] [int: offset after last element (the next byte to write if you prefer)] [int: size of element 1] [n bytes: element 1] [int: size of element 2] [n bytes: element 2] [int: size of element 3] [n bytes: element 3]
Best regards,