Hi everyone!
I'd like to output this:
Please enter a folder!
> C:\MYFILES\RECIPES
Contents of C:\MYFILES\RECIPES
I found a file and its name is chicken1.doc
I found a file and its name is chickensalad.doc
I found a folder and its name is OTHER RECIPES
I found a file and its name is fried cabbage juice.doc
I found a folder and its name is SENT TO MOM
I found a file and its name is yucky meat sauce bad horrible gross.doc
etc.
Order is irrelevant.
The key is, how do you tell whether an item is a file or a folder?
Thanks!
-Phil11
I'd like to output this:
Please enter a folder!
> C:\MYFILES\RECIPES
Contents of C:\MYFILES\RECIPES
I found a file and its name is chicken1.doc
I found a file and its name is chickensalad.doc
I found a folder and its name is OTHER RECIPES
I found a file and its name is fried cabbage juice.doc
I found a folder and its name is SENT TO MOM
I found a file and its name is yucky meat sauce bad horrible gross.doc
etc.
Order is irrelevant.
The key is, how do you tell whether an item is a file or a folder?
Thanks!
-Phil11