Given a directory we need to find all files


Given a directory we need to find all files in that directory and subdirectory for example if we have a directory like this:
char ** getAllFiles(char * directory);

hello
hello.c
hello.h
www.c
google
hello.txt
win.doc
new
afile.c
yah.c

The red is all the files and blue is the folder or directory
Your function should return ["hello.c", "hello.h", "www.c", "hello.txt", "win.doc", "afile.c", "yah.c"]
As a side note the file should be preceded by their directory.
RED FILES:::::: hello.c 
hello.h 
www.c
hello.txt 
win.doc 
afile.c 
yah.c 
Blue FILES::::: 
hello 
google 
new  

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Given a directory we need to find all files
Reference No:- TGS088942

Expected delivery within 24 Hours