You mean, kind of like a file?
At that point, it's probably easier to go with an already existent object or document store.
If you start using the filesystem as a datastore that requires concurrent access you open up a whole new can of worms. You need a locking mechanism - which you'll probably implement using (wrapped) native syscalls. Not only does that break cross-platform operation, you'll also have to work on and fix (but find first, of course) bugs in the locking implementation. As you spend more and more time on this and your app starts growing, you'll find yourself spending more and more time working with the limitations of the filesystem you're using (file size limits, directory size limits, access times for files in large directories). You can hack your way around all that but then you have to face other critical tasks. Say .. backup and restore procedures. Can you do partial backup/restore operations? No? Well, get ready to write code for that too. And you preferably want to be able to do those live. Remember those locking issues you solved when you started down this road to hell? Yeah, they're back with a vengeance now.
How about a full restore? Maybe you should have implemented a replay-able log system to get that full restore up to speed with the state of the db since the time of the last backup.
Or maybe this isn't exactly the right point at which to re-invent the wheel :)
Files can be locked if your OS supports it.
http://github.com/stevedekorte/vertexdb
In production use at http://stylous.com
Oh boy... How many times I had to explain my clients their sites would be just fine using ZODB instead of MySQL...
Never thought it that way. Hey! I am using NoSQL databases since 2001!
Actually, I wrote a lot of Dataflex 2 code, so make it 1987 or so.
Sometimes you just want to store data on the disk in a safe and language agnostic way.
You don't care about relations.
In that case, many "NoSQL" engines are really great.