This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Exception thrown while createNewFile() 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 » Java in General
Bookmark "Exception thrown while createNewFile()" Watch "Exception thrown while createNewFile()" New topic

Exception thrown while createNewFile()

jaibhim max

Joined: Nov 15, 2010
Posts: 21
Hi All,

I am using windows 7 and trying to create a file .testBoringFile on my mounted drive "U:".
I wrote following code.

.testBoringFile gets creates but an exception is thrown while executing"tempFile.createNewFile()".

I referred following link, but doesn't get any useful info.

Can anyone please help me out?

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60822

"jaibhim max", please check your private messages for an important administrative matter. Thanks.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Exception thrown while createNewFile()
Similar Threads
Runtime.getRuntime().exec(s) spaces in s are trimed Too many open files
Getting Exception for Java through FTP.
How to close a file
Difference between Exceptions thrown by JVM and thrown Programatically