Hi

I am trying to perform some read/write file operations in spark. Somehow I
am neither able to write to a file nor read.

import java.io._

      val writer = new PrintWriter(new File("test.txt" ))

      writer.write("Hello Scala")


Can someone please tell me how to perform file I/O in spark.

Reply via email to