Cadence Skill 论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 3999|回复: 1

新人报道,Load “File Path" 路径中的斜杠与反斜杠问题

[复制链接]
发表于 2014-2-26 15:51:53 | 显示全部楼层 |阅读模式
新人报道,还请各位多多关照。
根据vivienluo <Hello World>帖子步骤,发现在load文件时,如果路径中用单斜杠会有问题。
Skill > load "d:\hello.il"
E-
E- load "d:\hello.il"
E-                  ^
E- PARSER WARNING at line 1 column 18 of file *string*
W- *WARNING* (Parser): character found after backslash is not meaningful - d:\hello.il
E- *Error* load: can't access file - "d:hello.il"
ERROR

因为在一些软件中会发生类似问题,所以将其改为双斜杠,结果如下:
Skill > load "d:\\hello.il"
t

这时才注意到,vivienluo 原帖中用的是反斜杠,试了一下,没有问题。
Skill > load "d:/hello.il"
t

多谢vivienluo。不管学习那种语言,大多是从前人的"Hello World" 跟起。以后跟您多学习。
发表于 2014-2-26 20:51:20 | 显示全部楼层
欢迎加入
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|网站地图|Cadence Skill 论坛 ( 蜀ICP备13024417号 )

GMT+8, 2024-5-15 14:15 , Processed in 0.131291 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表