I am using PHP, but I guess this question might be language agnostic.
With PHP, a constant is defined by PHP, called DIRECTORY_SEPARATOR. I ha
DIRECTORY_SEPARATOR
Windows actually uses a backslash as the directory separator, although some environments that have Windows versions will translate between forward slashes and backslashes automatically (Python comes to mind).