title: How to access local files in Spark on Windows?
body: <p>I am using <code>Spark</code> on <code>Windows</code>. I know in <code>*nix</code>, accessing local file code likes this:  </p>
  
  <pre><code>val textFile = sc.textFile("file:///usr/local/spark/README.md") 
  </code></pre>
  
  <p>But how can I access a local file on <code>Windows</code>? I have tried following methods:  </p>
  
  <pre><code>val logFile = "C:\spark-1.3.1-bin-hadoop2.4\README.md"
  val logFile = "file\\C:\spark-1.3.1-bin-hadoop2.4\README.md"
  </code></pre>
  
  <p>But all can't work.  </p>