How can I validate a filename as being valid before trying to
write the file?
Somehow I created a directory on WinXP which cannot be
deleted. Every time I try to delete it or rename it via Windows
says it can't find the file. Same results from the command prompt.
I noticed that the dir name has a lot of trailing whitespace
(filenames are generated from user input) which seems like it might
be related. At the very least, I don't want this to happen to end
users. But I also want to delete this directory if anyone has any