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
Post a Comment