aspose file tools*
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: 24166
    
  30

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: unable to locate the Temporary file
 
Similar Threads
Why must we close BufferedWriter when finish writing?
Creating a Temporary File
BufferedWriter to byte []
editing a line of a txt file with a thousands of line
how to create a properties files through java program and store it on local system