title: Program not able to find file even though the file is in the same folder (text file)
body: <p><a href="https://i.stack.imgur.com/Raz13.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Raz13.png" alt=" The image is the way the files are stored."></a> I am making a programming project with school and everything else is working; However, the program cannot find the file even though it is in the same folder. </p>
  
  <pre><code>with open("song_artists.txt") as textfile:
      lines = [line.split("\n") for line in textfile]
  
  ##for item in lines:
  
  newItem = str(lines[random.randint(0,2)])
  #print(newItem)
  artist, song, blank = newItem.split(",")
  artist = artist[2:len(artist)]
  song = song[0:len(song)-1]
  print(artist)
  
  
  for x in range(len(song)):
      if song[x] == " ":
          print(song[x+1])
  
  </code></pre>
  
  <p>The code above is where the error is happening. The error message is: File "W:\year 11\Computer_Science\Programming\20_Hour_Project\Project Code.py", line 61, in 
      with open("song_artists.txt") as textfile:
  FileNotFoundError: [Errno 2] No such file or directory: 'song_artists.txt'</p>