Hi:

How can I determine whether an input string refers to a file or a directory?

For example: input is /internet/test

Is this a file or a directory? Is there a way to determine this using C++?

Thanks.