[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sc-devel] another dev task before 3.2
It looks like the file primitives are smart enough to convert slashes for you.
But in the current code, if you do something like this in Windows:
You get zippo because Object.filenameSymbol has backslashes but
PathName looks only for forward slashes. That kind of thing is
platform-specific coding that we should avoid..
On Dec 26, 2007 2:36 PM, Sciss <contact@xxxxxxxx> wrote:
> stupid question: if i write
> ~buf = Buffer.read( s, "sounds/a11wlk01.wav" );
> won't that work on windows? i.e. on windows do i have to write:
> ~buf = Buffer.read( s, "sounds\a11wlk01.wav" );
James Harkins /// dewdrop world
"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal." -- Whitman