5 ms·
See, I was gonna go with Data.txt in a shared network drive. Btw = if you're worried about conflicts - it's Ok there's a second file called "writeStatus.txt" w
by Ntrails 10y ago
See, I was gonna go with Data.txt in a shared network drive.
Btw = if you're worried about conflicts - it's Ok there's a second file called "writeStatus.txt" which you have to claim by replacing the String NULL with your processId - thereby claiming write access to data.txt and causing any other processes to Thread.Sleep until it's free.
Unrelated, who's hiring...
- willis77 10y agoBut who has access to writeStatus.txt? Classic rookie mistake. You needed a writeStatusWriteStatus.txt.
- btschaegg 10y agoSounds like playing Byzantine Generals on the file system :)
- zhte415 10y agoFlat files FTW, Just need to re-invent server-client architecture using freely available tools and you're at management level kudos,