I am trying to open a file - a relatively simple block of code. I have done this before with no problems but this time, even after restarting my laptop and trying on other softwares than VSC, it is still not working. It is just returning a blank line, I have double and triple checked that my txt file is in the same location as my python file. Am I just missing something simple? Thanks.
file = open("cstest.txt", "r")
readfile = file.read()
print(readfile)
file.close()