On Thu, Sep 11, 2008 at 15:54, Catherine Moroney
<[EMAIL PROTECTED]> wrote:
> What is the correct way to create an SD file (if it doesn't already
> exist),
> or truncate and then rewrite an existing one?
I would suggest testing with os.path.exists() first, then deciding
whether to use TRUNC or not
What is the correct way to create an SD file (if it doesn't already
exist),
or truncate and then rewrite an existing one? Does it matter which
order
the file-access options are set?
For instance, here's my code:
self.flhdf_stereo = SD.SD(flname_stereo, \
SD.SDC.TRU