File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how can i create a java program to view the contents of a dir?

 
thangam malathy sharmi
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i create a java program to view the contents of a dir?

for example if i require like
[root]
[dir name ="xyz"]
[file]f1.doc[/file]
[file]f2.doc[/file]
[dir name="abc"]
[file]f3.doc[/file]
[/dir]
[/dir]
[/root]

regards
sharmi
 
Vijay Vaddem
Ranch Hand
Posts: 243
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Go through this File

and then, use methods...

isDirectory
isFile
and list ...

Lets us know your progress .......

Cheers,
Vijay
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic