c - Can we pass a path string with white-spaces in it as argument to fopen()? -


i'm using fopen() , need open file pass path white-space in argument. here code:

file * pfile; pfile = fopen ("\this folder\myfile.txt","w"); 

will work such or need add in there recognize space?thanks.

spaces work, need escape '\' though, as

pfile = fopen ("\\this folder\\myfile.txt","w") 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -