How to check a string has only file name or path with file name

  • Thread starter Thread starter sgrm123
  • Start date Start date
S

sgrm123

Guest
Hi,

In my application, User can enter file name like "Test.txt" or "C:\\Test.txt".

If file name alone is given I need to check whether the file is available in current directory.

How to know whether string has only file name?


Thanks in advance.

Continue reading...
 
Back
Top