checking if a text file exists and creating new text files

I've been stuck with this problem for a while now. I have a text file with the below information in my project folder:

Last edited on
I think the problem may be the space in the name "General Chemistry".

Take out the space and see what happens
Topic archived. No new replies allowed.