Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9221451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:34:56+00:00 2026-06-18T03:34:56+00:00

I have a file stream opened in writeshare and append mode from multiple processes.

  • 0

I have a file stream opened in writeshare and append mode from multiple processes.
Does anybody know if a single unbuffered write operation can be considered atomic?

Or have i to develop a way to synchronize different writes to ensure my data are safe?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T03:34:57+00:00Added an answer on June 18, 2026 at 3:34 am

    I found my way.

    You can open a filestream using this constructor.

    new FileStream(FileName,
        FileMode.Append,
        System.Security.AccessControl.FileSystemRights.AppendData,
        FileShare.ReadWrite, 4096, FileOptions.None);
    

    using System.Security.AccessControl.FileSystemRights.AppendData parameter to open the stream, with FileMode.Append, the OS will try to write the buffer in atomic way.

    If your write is bigger than buffer size, the operation will not be atomic, so you have to check your buffer size.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: FileStream Append Data at the top I have a file stream opened
I have response stream from a ftp web request that returns binary file. I
does anybody know of a secure 'read-once' local file access system? Or how one
I'm performing I/O to a single file from multiple threads. Access to this shared
So a FILE stream can have both input and output buffers. You can adjust
I have been trying to mock out a using with a file stream but
I have a 11-minute .mkv file with a h264 video stream, taking up 184MB
I have a function that takes an opened file object file and writes data
I can have a UIWebView with the .m3u file opened, which will go to
I have a file stream of an image in Python: \x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x04\x87... How do I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.