This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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