java error with ".write"
<p>I'm having a problem here<br>
I am using netbeans!<br>
I am unable to use the .write</p>

<p>Here are my codes:</p>

<pre><code>ModFile=new File(NameText.getText() + ".mod");
if(!ModFile.exists()){
try {
  ModFile.createNewFile();
  System.out.println("Mod file has been created to the current directory");
  ModFile.*write*(CodesBox.getText());
  } catch (IOException ex) {
  Logger.getLogger(ModMakerGui.class.getName()).log(Level.SEVERE, null, ex);
  }
 }     
</code></pre>

<p>This line:</p>

<pre><code>ModFile.*write*(CodesBox.getText());
</code></pre>

<p>is giving me problems!<br>
Please help me here</p>
