niria
asked on
how to put files of folder in an array
i have a function that returns the path of a directory in
char file_name;
i need to find how many *.wrl files are in the folder
and put in an array of strings called
"file_body"
all the wrl file names in the folder
such as:
filebd[0]="cube.wrl"
filebd[1]="triangle.wrl"
...
all the files of the folder should be in the array, each in a different cell...
( i dont know how many cells are in the array...) - should make malloc...
thnx
char file_name;
i need to find how many *.wrl files are in the folder
and put in an array of strings called
"file_body"
all the wrl file names in the folder
such as:
filebd[0]="cube.wrl"
filebd[1]="triangle.wrl"
...
all the files of the folder should be in the array, each in a different cell...
( i dont know how many cells are in the array...) - should make malloc...
thnx
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.