In an iOS app: consider the use case of having a small amount of very volatile data that I want to persist (so the app can get the last version when it restarts). A stock tick, game position, some counter, last keystroke, etc. This value can change 1,000's times in one app session (or more: 100,000's of times I guess).
I'd like to persist that one simple value in its own file, for other reasons. If I use the standard file writing mechanisms (perhaps using FileHandle), will this be ok to overwrite the same file so many times?
I know that it's bad to write thousands of times to the same actual hardware flash memory - that'd burn out the device.
But will iOS/file-apis solve this for me? Like through caching or memory mapping or something?
just checking, thanks!