On Oct 22, 1:38 am, "Alf P. Steinbach" <al...@start.nowrote:
* Ramon F Herrera:
My application receives a filepath as an argument. Obviously, it can
come in several formats, such as:
filename.ext
.\filename.ext
..\..\filename.ext
this\is_a\relative\path\finally.ext
C:\fully\qualified\path\filename.ext
...and so on.
In Unix there is a function which will do the right thing in every
case, splitting the path into a base and a filename.
Is there such thing, something equivalent in Windows programming?
Windows programming is off-topic in clc++.
Check out the Boost library's general file handling.
Ooops, I went trigger happy, shot from the hip and didn't even realize
you actually gave some useful info, Alf.
Thanks!
For the record: I am not too fond of the Windows crowd, their ways and
means, and have tried my best to stay on the side of standards,
interoperability (i.e., non-Microsoft), IETF, OSS, etc.
-Ramon