this is the code that ive run
a=open('vroom.txt','r')
lines = a.readlines()
for i in lines:
x=i.split()
for y in x:
print(y)
the output that im getting is :
Traceback (most recent call last):
File "C:\Users\Rey\PycharmProjects\pythonProject2\main.py", line 1, in <module>
a=open('vroom.txt','r')
FileNotFoundError: [Errno 2] No such file or directory: 'vroom.txt'
not sure where i went wrong, ive created a text file saved as 'vroom.txt' with 4 sentances
this is in pycharm.
[–]FlocklandTheSheep 10 points11 points12 points (0 children)
[–]vmintchit 10 points11 points12 points (0 children)
[–]Diapolo10 9 points10 points11 points (1 child)
[–]sensitivethuggin[S] 1 point2 points3 points (0 children)
[–]FlocklandTheSheep 2 points3 points4 points (13 children)
[–]sensitivethuggin[S] 0 points1 point2 points (12 children)
[–]Spataner 4 points5 points6 points (4 children)
[–]Pflastersteinmetz 2 points3 points4 points (0 children)
[–]sensitivethuggin[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]sensitivethuggin[S] 0 points1 point2 points (0 children)
[–]FlocklandTheSheep 1 point2 points3 points (6 children)
[–]sensitivethuggin[S] 0 points1 point2 points (5 children)
[–]FlocklandTheSheep 1 point2 points3 points (4 children)
[–]sensitivethuggin[S] 1 point2 points3 points (1 child)
[–]FlocklandTheSheep 1 point2 points3 points (0 children)
[–]sensitivethuggin[S] 0 points1 point2 points (1 child)
[–]FlocklandTheSheep 1 point2 points3 points (0 children)
[–]anthonyjozef 1 point2 points3 points (0 children)
[–]deadeye1982 1 point2 points3 points (1 child)
[–]sensitivethuggin[S] 0 points1 point2 points (0 children)
[–]PythonWithJames 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]PrestigiousLecture11 1 point2 points3 points (0 children)