• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Browsing Directory Structure and opening a file in the subdirectory

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is my question !
I am browsing thru the Directory structere using a Java program. I can browse, but can't open a file down in the sub-sub folder.
Any ideas, it seems to me that the constructor for the filereader is not supporting this. i might be wrong.
Please help.
Nehal
 
Bartender
Posts: 783
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
nehal,
It would be easier for everyone to help you out if you posted some sample code of what you're trying to accomplish. I haven't had any problems opening files regardless of where they reside, unless the file is currently being locked by some other process.
BTW, remember to put your code between the open and closing UBB code tags.
E.g.

-Peter
 
Ranch Hand
Posts: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Allow me to also suggest the methods "isFile()" and "canRead()" (in class "File") which may also be applicable here.
Hope this helps.
Good Luck,
Avi.
 
reply
    Bookmark Topic Watch Topic
  • New Topic