Problems with / and \ compatibility
I have to load some files. I read the path names from an XML file, and lets say I have a string like "data\images\myimage.png". If I load this with ImageIO it will work ok under Windows, but it won't work under Linux, probably because of the usage of the \ slash instead of the /
So is there a way to universally load file names no matter which slashes are used? Or if not, then how can I find out which slash is used by the current system? Then in case the / is sued I could go through the string and replace where necessary...
Waiting for your reply,