Actually, having given it a little more thought, it appears that the space
character (which my posted code properly accounts for) is the only
character, apart from the dot itself, which is permitted in a file name
but not permitted in a file extension.
I just renamed a file by placing a space in the extension and my WindowsXP
Pro system let me do it without complaining. Well, it did complain, but only
with a warning that changing a file name extension may make the file
unusable (I had renamed a ".txt" file to ".t xt", but I could open it fine
from Notepad).
Re: how to get the file extension from a pathname ... want to extract the extension of a file as a String.Suppose the ... represents one of the predefined character classes (any ... (full-stop, period, dot, decimal, etc.) ... single backslash would be seen as an illegal escape character:... (comp.lang.java.programmer)
Re: Make all files extension lower by a given directory name ... are you sure you want to strip off the last character in the actual ... you'd want to strip the dot off the left side of the extension rather than try and monkey with the right side of the filename portion. ... (comp.lang.python)
Re: If exist batch command not working in WinXp ...vanilla DOS through at least 5.0, unless I am very much mistaken. ... "The * Character"... with AB and have an extension of XYZ. ... or *.* matches anything with or without a dot... (microsoft.public.windowsxp.newusers)
Re: OPENFILENAME Structure and nFileExtension ... or does not happen so just wrote my own routine to parse out the extension.... >>the nFileExtension member of the OPENFILENAME structure,... >>specifies an offset to the terminating NULL character. ... >>as the last character in the file name, ... (microsoft.public.vc.mfc)
Re: Fortran source of non-linear unconstrained optimization ... I think that treating upper and lower case as ... fortran character set is not an extension.... It may be weasel-wording to claim that the processor considers an "a" in the representation of the program on disk to be a transcription of an "A" in the program itself (except within character constants), but it does seem to be a valid bit of weasel-wording. ... (comp.lang.fortran)