file_find_next

This function returns the name of the next file that satisfies the previously given mask and the attributes (defined by file_find_first()). If no such file exists, the empty string is returned.

WARNING! This function may not work as you expect due to GameMaker Studio 2 being sandboxed! Please see the section on the File System for more information.

NOTE: This function works on all the C++ target platforms (Windows, Mac, iOS, Android and WinPhone), BUT the filter flags only work on Windows.

 

Syntax:

file_find_next();

 

Returns:

String

 

Example:

file = file_find_next();

This will return the next file that matches the previously given attributes.