File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unable to locate the Temporary file

 
Siva kandasamy
Ranch Hand
Posts: 139
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
See the code below. Please help,
I am unable to locate the Temporary file "pattern.txt" after execution in UNIX environment.

thanks
siva


 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just use something like

System.out.println(temp.getAbsolutePath())

to display the file's name and path, and then you'll know where to find it.

Note, also, that empty "catch" blocks like this are the easiest, cheapest way to drive yourself completely insane while debugging. Always at the very least call e.printStackTrace() so that you know a problem occurred.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic