long0857 发表于 2014-2-26 15:51:53

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

新人报道,还请各位多多关照。
根据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" 跟起。以后跟您多学习。

vivienluo 发表于 2014-2-26 20:51:20

欢迎加入
页: [1]
查看完整版本: 新人报道,Load “File Path" 路径中的斜杠与反斜杠问题