[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Running Lua script file from Lua Console
- From: David Kastrup <dak@...>
- Date: Wed, 09 Sep 2009 10:44:40 +0200
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