title: Writing a file into Amazon S3 AWS Storage using Scala
body: <p>this is part of my code:</p>
  
  <pre><code>   val file=new File("s3a://tracce/output/Tempi.txt") 
     val writer=new BufferedWriter(new FileWriter(file,true))
     writer.write("Execution Time trace "+count.toString+"x"+i.toString+": "+differenza.toString)
     writer.newLine()
     writer.flush()
     writer.close()
  </code></pre>
  
  <p>I need to write a new file into my bucket using Scala. 
  I get this error:</p>
  
  <pre><code>Exception in thread "main" java.io.FileNotFoundException:     s3:/tracce/output/Tempi.txt (No such file or directory)
  </code></pre>
  
  <p>When I try to save it locally, it works:</p>
  
  <pre><code>val file=new File("./Tempi.txt")
  </code></pre>
  
  <p>How could I solve it?
  Thanks in advance</p>