GeeCON Prague 2014*
The moose likes Beginning Java and the fly likes unable to locate the Temporary   file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "unable to locate the Temporary   file" Watch "unable to locate the Temporary   file" New topic
Author

unable to locate the Temporary file

Siva kandasamy
Ranch Hand

Joined: Dec 31, 2002
Posts: 139
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

Joined: Jul 08, 2003
Posts: 24187
    
  34

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.


[Jess in Action][AskingGoodQuestions]
 
GeeCON Prague 2014
 
subject: unable to locate the Temporary file