A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2010-March/721966.html below:

Possible to open a file for shared write mode under Windows?

Possible to open a file for shared write mode under Windows? Possible to open a file for shared write mode under Windows?Gabriel Genellina gagsl-py2 at yahoo.com.ar
Thu Mar 18 00:20:31 EDT 2010
En Wed, 17 Mar 2010 23:42:46 -0300, <python at bdurham.com> escribió:

> Is there a way to open a file for shared write mode under
> Windows?
>
> I have 2 processes that will write to different regions of this
> shared file.

Using the pywin32 package at sourceforge, you have access to the  
CreateFile function:  
http://msdn.microsoft.com/en-us/library/aa363858(v=VS.85).aspx
You want dwShareMode=FILE_SHARE_WRITE

-- 
Gabriel Genellina


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4