lua-users home
lua-l archive

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


--- Shmuel Zeigerman <shmuz@actcom.co.il> wrote:

> > Not necessarily, forward slashes are OK in NT:
> > 
> >     local fh = io.open("E:/temp/SomeTestFile.txt",
> "w")
> >     fh:write("Simple test string\n")
> >     fh:close()
> 
> This is only partially true. Try "dir E:/temp" or
> "cd E:/temp".
> 
That is a problem of the cmd shell where "/" is used
as "-" in unix, for backward compatability of DOS.

If memory serve, "e:/temp/..." works even in the old
DOS days, not in the shell but system call.




       
____________________________________________________________________________________
Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz