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
also, the examples in the keil documents shows the space only used in frename() function. The fopen doesnt have an example with filename with space character - which makes me assume that space character cant be used with fopen but can be used with freopen.
http://www.keil.com/support/man/docs/rlarm/rlarm_fopen.htm http://www.keil.com/support/man/docs/rlarm/rlarm_frename.htm
I don't use the Keil file system - but what file system is it. If it's a traditional MS-DOS file system without VFAT support, then file names are limited to 8.3 length.
This is a little bit of text about the file name handling - actually about # of files you can store in the root directory, but it does mention a bit about processing of file names.
http://www.keil.com/support/docs/3598.htm
That would be Flash-FS. but on Parallel Nand flash memory, i think its FAT32. (though i m not sure about the details. i havent really implemented it _but welcome all the suggested documents - for studying and getting the details of it_)