Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Create File with Folder

843785Dec 8 2008 — edited Dec 8 2008
Dear sir,

i wrote small Generic API for create a file*(test.txt)* or folder*(..\folder\test.txt)* with a file......

1. The Generic API successfully executed when i passed a file...
2. when i pass folder with file name it throws
Exception in thread "main" java.io.IOException: The system cannot find the path specified
	at java.io.WinNTFileSystem.createFileExclusively(Native Method)
	at java.io.File.createNewFile(Unknown Source)
	at com.vs.accr.xmlObjects.TestClass.main(TestClass.java:11)
please help me out.....

Thank you
Boss134
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 5 2009
Added on Dec 8 2008
8 comments
305 views