TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: All
from: Neil Heller
date: 2003-07-20 13:53:00
subject: Creating a directory

I wrote an application that I wish to modify in the following way:

If a subdirectory of a certain name does not exist, create it.

I thought: "this is a piece of cake".  I'll use mkdir() and if the 
return value != 0, it already existed prior to the call.

That's it.  Quite easy, eh?

Then I looked at the meager documentation I have and found that mkdir() 
is NON-standard (indeed, its provided as _mkdir()).  Then I looked in 
Snippets and found that this venerable tool uses mkdir().  I looked at 
the methods of the CFile class and found no help there.

BTW, mkdir() is a standard part of Java, FWIW.

Is there a "standard" way of dealing with directory creation?
In thinking about this, it seems to me that directories are not standard 
so how can there be a standard way of dealing with them?

However, since I realize this, you cannot use this excuse.

þ CMPQwk 1.42 999

--- Maximus/2 3.01
* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)
SEEN-BY: 633/267 270
@PATH: 106/2000 633/267

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™.