C
C#16mo ago
n8ta

❔ No atomic appends to file in .NET core?

I've used this snippet before to do atomic appends to a file https://stackoverflow.com/questions/1862309/how-can-i-do-an-atomic-write-append-in-c-or-how-do-i-get-files-opened-with-the but it seems that this no longer works in .NET core. I found this attempt to fix https://github.com/dotnet/runtime/pull/55465 which was not merged and this proposal https://github.com/dotnet/runtime/issues/53432#issuecomment-902478772. Is there any other way to accomplish atomic appends? I only really need macos support but it seems like cross plat isn't too much to ask (:
4 Replies
n8ta
n8taOP16mo ago
Thanks let me give that a try!
reflectronic
reflectronic16mo ago
those APIs only work on Windows for what it's worth
Accord
Accord16mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server