当我尝试在Unix(和Windows)上包含一个文件时,它包含空格时将无效。例如,这些不起作用:
include ~/Space Folder/test.fs
include ~/Space\ Folder/test.fs
include "~/Space Folder/test.fs"
include "~/Space\ Folder/test.fs"
include C:\Users\Lim Ding Wen\test.fs
include C:\Users\Lim/ Ding/ Wen\test.fs
include "C:\Users\Lim Ding Wen\test.fs"
那么..有没有办法让这项工作?谢谢!
答案 0 :(得分:2)
使用included
字词:
s" My File With Spaces.fs" included
Tilde扩展可能不起作用(尚未测试)。如果未指定绝对路径,则该文件必须位于GFORTHPATH