Admin, here is a thought:
Quote:
Any suggestions how we can overcome this are welcome!!! Who knows, we may just be missing the real key that one of you can define for us.
|
Instead of using the . as an ending delimiter as you are now, read each filename in to a string, rtrim the trailing spaces, then parse the last 4 chars.
This would leave you with .cdg, .zip, .bin, etc. Then you wouldn't need the . in the "template". each file read would be automatically parsed and the final 4 chars removed, so the only thing being taken from the user would be the template ...
That would give you fileNameVariable =
(Template) + (last four parsed) to feed back to directory services.
You could set it up in a case as: (yes this is kind of VB pseudo code, but can do the same with c++)
Select case lastFour:
Case ".bin" : Call handleer for .bin file
Case ".zip" : Call handler for zip
Case ".mp3": Find matching CDG and Call handler for mp3+g
End select