File Find – Giavapps File

 

File Find

 

gf_file_find_first(FileName) Searches a directory for a file or subdirectory with a name that matches a specific name (or partial name if wildcards are used). If the function succeeds, it returns a string with the FileName found or an empty string otherwise. PLEASE NOTE: This is a Windows only function.

FileName: a valid file name. This argument supports Unicode characters.

 

gf_file_find_next() Continues a file search from a previous call to the gf_file_find_first() function. If the function succeeds, it returns a string with the FileName found or an empty string otherwise. PLEASE NOTE: This is a Windows only function.

 

gf_file_find_close() Closes a file search handle opened by the gf_file_find_first() function. PLEASE NOTE: This is a Windows only function.

 

Code Examples

 

Searching For Text Files

 

var filename = gf_file_find_first(working_directory+"*.txt");

while(filename != "")
{
show_message("TEXT FILE FOUND!##"+filename);
filename = gf_file_find_next();
}

gf_file_find_close
();

 

I am Luigi Piscopo, also known as DJ GiDeejay / Producer / Remixer in the music world. I am a Producer with a lot of experience in photo editing, video editing, audio editing, graphic design, web design, programming and promotion.

 

Leave a Reply

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

*