I am currently writing an input file renamer, to ensure that all my input values have an unique name. However I am now wondering how to store the unique name, most likely being an integer + extension.
I have considered this so far:
- Database. Might be slow, always needs a connection up.
- Registry. Not sure if you would want to use registry for a simple counter like this, which will be modified a lot.
- Plain text file. Seems like most simple option, but is prone to easy deletion, hence does not offer that much 'security' as database/registry.
The renamer will act like this:
- Input
randomstrings.pdf->1.pdf - Input
notrandomatall.pdf->2.pdf - Input
abcdef.pdf->3.pdf - etc.
It needs to be persistent over multiple executions of the program and system (server) shutdown/failure aswell.
Regards