title: Write single CSV file using spark-csv
body: <p>I am using <a href="https://github.com/databricks/spark-csv" rel="noreferrer">https://github.com/databricks/spark-csv</a> , I am trying to write a single CSV, but not able to, it is making a folder.</p>
  
  <p>Need a Scala function which will take parameter like path and file name and write that CSV file.</p>