This error also happens when writing into a folder without specifying the name of the file to be created
solution ...\filename.txt'