hi im having a problem case of file name xyz with differs on disk
i want to compare the string extension, but the simulator treats it like “a.png” is equal to “a.PNG”.
my program is making a comparation this way:
if fileExists(atributos.pasta … “/Sons/”…nome…".wav") then
table.insert( audioFiles, nome…".wav" )
elseif fileExists(atributos.pasta … “/Sons/”…nome…".mp3") then
table.insert( audioFiles, nome…".mp3" )
elseif fileExists(atributos.pasta … “/Sons/”…nome…".WAV") then
table.insert( audioFiles, nome…".WAV" )
end
it ends up adding a wrong file name to my ‘dllTelasSons.txt’ file, that gives an error on android, since android cares about upper and lower cases. Is there a way for the simulator to not accept the uppers and lower cases as equal?
thanks in advance
my best regards