accessing directorys/files
BlitzMax Forums/BlitzMax Programming/accessing directorys/files how do linux/mac handle folders and files?
Forward slashes, the filesystems "root" directory being "/". does blitzmax take care of this internally?
I don't know, but if you use proper forward slashes religiously, it'll run on everything. what about the final '/' ?
On BlitzMax Win32 I get:
c:/blitzmax/temp
Under BlitzPus and Blit3D:
c:\blitz\temp\
Do we need to append the foward slash for all versions of BlitzMax like so:
Print CurrentDir$()
On BlitzMax Win32 I get:
c:/blitzmax/temp
Under BlitzPus and Blit3D:
c:\blitz\temp\
Do we need to append the foward slash for all versions of BlitzMax like so:
soundfolder$=CurrentDir$()+"/"+"sfx"?
If it doesn't provide the final '/', then yes, I would say you need to add it.
What I should have asked is,
"Do the Win32 (under Win98/XP/NT), Linux, and Mac versions give the same results for CurrentDir$()?"
"Do the Win32 (under Win98/XP/NT), Linux, and Mac versions give the same results for CurrentDir$()?"