By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,818 Members | 1,347 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,818 IT Pros & Developers. It's quick & easy.

Read Share

Subsciber123
P: 87
In most programing languages, there is a way to read a file, but allow other programs to read or write to it at the same time. This is usually called something like ``ReadShare()'' or ``open("filename", "readshare").''

Does anybody know if there is something like this in Python? If so, what is it (how do you use it {the name, the module, etc})
Nov 13 '06 #1
Share this Question
Share on Google+
4 Replies


bartonc
Expert 5K+
P: 6,596
In most programing languages, there is a way to read a file, but allow other programs to read or write to it at the same time. This is usually called something like ``ReadShare()'' or ``open("filename", "readshare").''

Does anybody know if there is something like this in Python? If so, what is it (how do you use it {the name, the module, etc})
I beleive that wxPython has file objects that are aware of changes to file which it has open and can act accordingly. wxPython is a python wrapper for the GUI Toolkit called wxWidgets - cross platform, written in C++
Nov 13 '06 #2

bartonc
Expert 5K+
P: 6,596
Also available is PythonWin which wraps most of the win32 API, so if it can be done with a windows file object, it can probably be done with these extensions.
Nov 14 '06 #3

Subsciber123
P: 87
Thanks, I'll look into those.
Dec 1 '06 #4

bartonc
Expert 5K+
P: 6,596
Thanks, I'll look into those.
It's nice to have you back among us.
Dec 1 '06 #5

Post your reply

Sign in to post your reply or Sign up for a free account.