wood burning stoves 2.0*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "unable to locate the Temporary   file" Watch "unable to locate the Temporary   file" New topic

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.


Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24183

Just use something like


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]
It is sorta covered in the JavaRanch Style Guide.
subject: unable to locate the Temporary file
Similar Threads
how to create a properties files through java program and store it on local system
BufferedWriter to byte []
editing a line of a txt file with a thousands of line
Why must we close BufferedWriter when finish writing?
Creating a Temporary File