This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unable to locate the Temporary file

 
Siva kandasamy
Ranch Hand
Posts: 139
  • 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: 24208
35
Chrome Eclipse IDE Mac OS X
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic