• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Searching files from a drive and displaying them in an window

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear all,

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?

Please give answer how can i do it?

thank you
with regards
sankar
 
Ranch Hand
Posts: 492
Firefox Browser VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What have you tried?

Hunter
 
lowercase baba
Posts: 13089
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You may find this helpful for steps 1 -3.
 
I hired a bunch of ninjas. The fridge is empty, but I can't find them to tell them the mission.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic