View Single Post
  #2 (permalink)  
Old 12-30-2007, 12:53 PM
CaptainMorgan's Avatar
CaptainMorgan CaptainMorgan is offline
Moderator
 
Join Date: Dec 2007
Location: NewEngland, US
Posts: 841
CaptainMorgan will become famous soon enoughCaptainMorgan will become famous soon enough
Send a message via AIM to CaptainMorgan
Going to need to see some more code there champ, that piece of code you posted looks good to me. "...blah.txt" doesn't need to exist for that line to compile, so your error is elsewhere. For example:

Code:
File testFile = new File("/home/captainmorgan/Desktop/testfile.txt"); try { System.out.println("Successfully created on the desktop: " + testFile.createNewFile()); } catch (java.io.IOException ioE) { System.out.println("Exception thrown biatch"); }
does just what I intended by creating the new file, so that line of code you have is currently and at this point irrelevant. And that error message you're getting is a little vague without seeing more code.
Reply With Quote