Great suggestion by max, use the File.separator instead of slash