a white space in the argument string of fopen

This may not be a big doubt or querry but kindly have patience.

I m using fopen with nand flash memory.
when is perform

FILE* file;
char filepath[PROTO_FILEPATH_SIZE];

...

file = fopen(filename, "w");         //filename = "Docs\CBE renamed.txt"

...

fopen creates a file with the name 'CBD renamed' in the folder Docs (no .txt extension). for any other filename without space characters, file is created with the extension '.txt'

kindly advise

Parents Reply Children
More questions in this forum