I've been learning ruby through this YouTube tutorial https://youtu.be/t_ispmWmdjY
So far it's been going well until I got to the section about reading or writing files, for whatever reason the external file which I named "demons.txt" does not work and when I tried to run the code
File.open("demons.txt", "r")
I get this error
Ruby/practice2.rb:1:in `initialize': No such file or directory @ rb_sysopen - demons.txt (Errno::ENOENT)
I started to suspect it was because ruby couldn't find the file and sure enough when I ran
puts File.exist?("demons.txt")
I am given a "false" which makes absolutely no sense to me since I can clearly see the file I'm trying to read in the explorer within the same directory with the exact same name and it's starting to infuriate me that I can't even think of a possible solution, help!