Take the 2-minute tour ×

If the user inputs a complete or partial file name(not path name, just the file name) , the program must display the name of its parent directory. Please someone write a program for this. It must include pattern matching too. Thank You

share|improve this question

closed as off-topic by Andrew Barber Aug 15 '13 at 13:57



this is not the place where people write software for you, this community is to help you when you are stuck writing an application –  Mehul Rathod Aug 11 '13 at 6:58

1 Answer 1

Have you tried any thing to solve it and if yes then share some code here.

share|improve this answer
