On Windows, the \ separates path elements. So if you have a folder called "my dir" and you want to open a file inside that called "my file.txt" you might do the following:
FILE *fp =...
Type: Posts; User: c99tutorial
On Windows, the \ separates path elements. So if you have a folder called "my dir" and you want to open a file inside that called "my file.txt" you might do the following:
FILE *fp =...
For spaces in filenames, you don't need any special escape character. Although giving a filename with spaces to a shell command might require this, but that's another story.