ID:170999
 
Hey, does * mean a "Wildcard" in DM? I want to do this:

if(fexists("*.sav")
//Then search all the files with .sav at the end
//and extract the Char_Names.


(Another question while i'm at it, how do I have it search all files with .sav for the extension and extract the char_names?)

And for the original question, is "*" the same as a wildcard?
* means multiply.

~>Jiskuha
Lenox wrote:
Hey, does * mean a "Wildcard" in DM? I want to do this:

> if(fexists("*.sav")
> //Then search all the files with .sav at the end
> //and extract the Char_Names.
>

(Another question while i'm at it, how do I have it search all files with .sav for the extension and extract the char_names?)

And for the original question, is "*" the same as a wildcard?

* in a file-related procedure should mean a wildcard.

You can use the flist() procedure to get a list of a directory's contents.
In response to Jon88
hrm, it's not allowing me to use * >_<. So, does anyone know another way to mean a wildcard? I can probably just use F["Char_Name"} >> char_name or something to extract the char_name if I can get the last part. Thanks for the help ya'll :P ((The reason I assumed * might mean wildcard is because, of course, * is a wildcard in tons of other things))