TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Richard Hulme
from: John Poltorak
date: 1995-04-20 14:08:54
subject: Unique Filenames

Monday April 17 1995, Richard Hulme writes to All:

 RH> I have a feeling this has been asked/explained before, but anyway....

 RH> How can I create a file with a unique filename under OS/2?  I've looked
 RH> through the Control Programming reference (including a search on 'unique')
 RH> but I can't seem to find anything.

 RH> Is there an easy way to do this under OS/2, or do you have to write your
 RH> own algorithm to do it (I know it's not very hard, but if I don't have to,
 RH> I don't want to).

There's a REXX function!

Look at SysTempFileName under REXX Information in the Information folder.

There are also the standard C functions tempnam and tmpfile.

John

--- GoldED/2 2.50.Beta4+
* Origin: (2:250/313)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 250/313 440/4 141/209 270/101 105/103 42 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.