Title: Signature.html
txt files only contain text. The mate to the txt file is a dat file, which contains video. I'm only changing its name to match that of its corresponding txt file. The txt file has a time stamp in it. That's why I'm changing the first line to match the new time stamp. Both files get renamed to show the new time stamp, v20080912_120000.[dat/txt].

ALAN GAULD wrote:
> At this point, I'm not sure what ufilenames are.

A typo! :-)
Should just be filenames

> I've been thinking, in the back of my mind, about file protection,

Its not about protecting the file per se its about what the security
settings on the file are as seen by the OS. In other words does the
user trying to open the file (you?) have read access?

check via the properties dialog in Windows Explorer.

> mainly the video portion.

You didn't say anything about these files having video in them!
Your program will likely corrupt the files as it is because you
are using text mode. You need to use binary mode for video data.

> allow me to determine if a file is locked, or that I can break the lock at some level.

Yes look at the os module and the stat() function.
Take a read of the Using the OS topic in my tutorial for basic
info on using all of these features.

Alan G.
http://www.freenetpages.co.uk/hp/alan.gauld/

--
           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
              Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet
            
          "If voting made any difference they wouldn't let us do it." 
                        -- Mark Twain
            
                    Web Page: <www.speckledwithstars.net/>
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to