[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Create folder



PureBytes Links

Trading Reference Links

FMKDIR
- creates (makes) a directory

File Input/Output functions
(AFL 2.70)


SYNTAX fmkdir( ''dirname'' )
RETURNS NUMBER
FUNCTION Creates (makes) a directory.

"dirname" specifies path of the directory to be created. Please note that this function creates only ONE directory at a time. So if you want to create nested directory tree you have to call it multiple times, for example to create C:MyDirectoryMySubDirectory folder you have to call it twice:

fmkdir( "C:\\MyDirectory" );
fmkdir( "C:\\MyDirectory\\MySubDirectory" );

Note also that it is safe to call it even if directory already exists (then no change to file system is applied)

Returns TRUE if directory successfully created, FALSE otherwise

EXAMPLE
SEE ALSO

References:

The fmkdir function is used in the following formulas in AFL on-line library:

    More information:



    From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of wavemechanic
    Sent: Tuesday, November 15, 2005 3:34 PM
    To: AmiBroker, User
    Subject: [amibroker] Create folder

    fopen() can be used to create a file.  Is there a similar way to create a folder with AFL so that the folder name (and path) can be created dynamically?
     
    Thanks.
     
    Bill


    Please note that this group is for discussion between users only.

    To get support from AmiBroker please send an e-mail directly to
    SUPPORT {at} amibroker.com

    For other support material please check also:
    http://www.amibroker.com/support.html





    YAHOO! GROUPS LINKS