File handling in Python for beginners
<p>Hello I am new to python and I am encountering this error :</p>

<blockquote>
  <p>C:\Users\Dylan Galea\Desktop\Modelling and CS>python file_handling.py</p>
  
  <p>File "file_handling.py", line 4</p>
  
  <p>np.savetxt(\Users\Dylan Galea\Desktop\Modelling and </p>
  
  <p>CS\test.txt,twoDarray,delimeter='\t')
                                                                                              ^
  SyntaxError: unexpected character after line continuation character</p>
</blockquote>

<p>my code is this :</p>

<pre><code>import numpy as np

twoDarray =np.array([[1,2,3],[4,5,6]])
np.savetxt(\Users\Dylan Galea\Desktop\Modelling and CS\test.txt,twoDarray,delimeter='\t')
</code></pre>

<p>can anyone help please ?</p>

<p>Your file name should be a string.</p>

<pre><code>np.savetxt(r'\Users\Dylan Galea\Desktop\Modelling and CS\test.txt',twoDarray,delimeter='\t')
</code></pre>

python file numpy