comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Create unique temporary file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Create unique temporary file [message #40674 is a reply to message #40669] Tue, 24 August 2004 23:47 Go to previous messageGo to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
> Here is how I create a unique journal file name:
>
> Print, String('journal_', Bin_Date(SysTime()), '.pro', $
> Format='(A, I4, 5I2.2, A)')

Thanks for the idea. I had thought of using a current system time
stamp, but it totally slipped my mind that I could concatenate the
number together so easily. It's little details like that which I'm
still learning. When I finally wrote my code, not only did I take the
date as you did, but I further appended a random number and I did a
check of file existence to ensure that nothing would ever get clobbered.
The only way this could fail would be if there were some insane
once-in-a-lifetime freakish occurrence. Now that I've said this, this
will happen tomorrow. ;-)


> P.S. Bin_Date!? What the heck is that!

The kind of code you get when you give coyotes caffeine late at night?

-Mike
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Another EPS question
Next Topic: Create unique temporary file

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Nov 30 11:57:55 PST 2025

Total time taken to generate the page: 0.08125 seconds