title: Pyspark on windows : Input path does not exist
body: <p>As I am new to pyspark, I did some research about my issue but none of the solutions worked for me. </p>
  
  <p>I want to read a text file, I first put it in the same folder as my .py file in jupyter notebook. For that I run the following command:</p>
  
  <pre><code>rdd = sc.textFile("Parcours client.txt")
  print(rdd.collect())
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>Input path does not exist: file:/C:/Spark/spark-2.3.0-bin-hadoop2.7/Data Analysis/Parcours client.txt
  </code></pre>
  
  <p>Although this is exactly where I put the file.txt, and I launch my pyspark from</p>
  
  <pre><code>C:/Spark/spark-2.3.0-bin-hadoop2.7
  </code></pre>
  
  <p>I tried also to indicate the local direction where my txt file exist:</p>
  
  <pre><code>rdd = sc.textFile("C:\\Users\\Jiji\\Desktop\\Data Analysis\\L'Output\\Parcours client.txt")
  print(rdd.collect())
  </code></pre>
  
  <p>I get the same error:</p>
  
  <pre><code>Input path does not exist: file:/Users/Jiji/Desktop/Data Analysis/L'Output/Parcours client.txt
  </code></pre>