Posts Tagged file path

February 10th, 2010

Scilab is a wonderful piece of software to use. It’s powerful, stable, a free alternative to Matlab, and it’s cross platform – happily crunching away matrices on Windows, OS X, and Linux. However the old problem persists of MS Windows using backslashes ‘\’ when OS X, Linux, and Internet URLs use slashes ‘/’. Slashes are great as they are easier to type on a US keyboard. If you are doing any kind of file IO with Scilab you must be careful when using slashes in your code if you expect your code to go cross platform. The handy boolean MSDOS variable can be used early to prevent problems.