It might be the simple question. Please give me best answer.
I have an external disk. I want to search for what files exists in that disk and wants display them in an window(ie in GUI).
And later i want select one or more files from them and then want read them to my local host memory.
And later can i delete those files from external disk?
Your question is rather broad to get much help here. What specifically are you having trouble with? What have you tired, and how is it working?
Folks here love to help you solve your problems, but they don't really like to write your code for you.
As with all projects, I would suggest breaking it down into smaller, discrete parts. The various tasks I see that are all independent of each other are:
1) get a list of files from a given directory
2) Given a list of files, display them
3) Allow a user to select one or more files from a GUI
4) given a list of files, read them into memory
5) given a file, delete it.
Each and every one of these five items can be written without any of the other four working. Write the methods independently of each other. Test each until you are 100% sure they are bullet proof, then test them all again and again.
Only when you are 1000% sure they work should you start wiring them together.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors