Hello,What is the proper way to read a directory such that file names are not garbled? Here is the example I borrowed form the std.file documentation. Screen shots of folder is attached. Thanks.
void main(string[] args)
{
bool callback(DirEntry* de)
{
if (de.isfile)
mciPlay(toUTF8(de.name));
return true;
}
listdir("snd", &callback);
}
D:\code>play
snd\american.ogg
snd\bigdog.flac
snd\blackmail.mp3
snd\ding.wav
snd\kam.aif.aiff
snd\豺。縺・ogg
<<attachment: folder.jpg>>
