title: Write I/O file to shared network drive using credentials
body: <p>I want to drop a .txt file on a shared network drive. The path is a map on a networkdrive which requires credentials (login and password). Can i pass these parameters using FileOutputStream?</p>
  
  <pre><code>FileOutputStream fos;
  DataOutputStream dos;
  
  try {
      File file= new File(path + "/" + fileName + ".txt");
      fos = new FileOutputStream(file);
      dos=new DataOutputStream(fos);
      dos.writeChars(stringContent);
      dos.close();
      fos.close();
  }
  catch(IOException eio){
  }
  </code></pre>
  
  <p>Thank you.</p>