lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


George Petsagourakis <petsagouris@gmail.com> writes:

> Robert G. Jakabosky <bobby <at> sharedrealm.com> writes:
>
>> 
>> Type this Lua code to execute that Lua script:
>> dofile("C:\\a\\ScriptingLanguageSupport\\Lua2.lua")
>> 
>> Note the double backslashes.  One backslash is used to escape some control 
>> characters like newline "\n", tab "\t".
>> 
>
> Also you can try : 
>
> dofile("C:/a/ScriptingLanguageSupport/Lua2.lua")
>
> As far as I know, Windows accepts both '/' and '\' for directory separators.

No, it doesn't.  The C library does, though.  Which means that slashes
work, except where they don't.

-- 
David Kastrup