title: error: not found: value sc
body: <p>I am new to Scala and am trying to code read a file using the following code</p>
  
  <pre><code>scala&gt; val textFile = sc.textFile("README.md")
  scala&gt; textFile.count()
  </code></pre>
  
  <p>But I keep getting the following error</p>
  
  <pre><code>error: not found: value sc
  </code></pre>
  
  <p>I have tried everything, but nothing seems to work. I am using Scala version 2.10.4 and Spark 1.1.0 (I have even tried Spark 1.2.0 but it doesn't work either). I have sbt installed and compiled yet not able to run <code>sbt/sbt assembly</code>. Is the error because of this?</p>