Page 1 of 1

et.FS_ constants

Posted: Tue Nov 27, 2007 8:50 am
by Luk4ward
hello,

where i can find et.FS_ constants?

regards

Posted: Tue Nov 27, 2007 3:45 pm
by ReyalP

Posted: Tue Nov 27, 2007 4:04 pm
by Luk4ward

Code: Select all

et.FS_READ
et.FS_WRITE
et.FS_APPEND
et.FS_APPEND_SYNC
ups, thx once again, i missed it

p.s is there an option to create a file by script?

Posted: Tue Nov 27, 2007 7:32 pm
by ReyalP
Luk4ward wrote: p.s is there an option to create a file by script?
Not sure what you mean ? You can use regular lua file io (which is essentially C stdio) or ETs FS API

Posted: Wed Nov 28, 2007 3:13 am
by Luk4ward
ReyalP wrote:
Luk4ward wrote: p.s is there an option to create a file by script?
Not sure what you mean ? You can use regular lua file io (which is essentially C stdio) or ETs FS API
I meant to create a file via the command in lua script, but its impossible atm i guess. The best way is to always keep one file clean and rename it when its needed, am i right? Thx for replies

edit:
my bad, creating a file via script is possible

Posted: Wed May 14, 2008 8:48 am
by Luk4ward
ReyalP wrote:
Luk4ward wrote: p.s is there an option to create a file by script?
Not sure what you mean ? You can use regular lua file io (which is essentially C stdio) or ETs FS API
Hmm but i cant use smth like?:

Code: Select all

io.open (file , "w+")
I want to remove or reset the file, but there is no et.trap_FS_F [remove/reset cmd ] File to do that..

Posted: Thu May 15, 2008 12:53 pm
by ReyalP
Luk4ward wrote: I want to remove or reset the file, but there is no et.trap_FS_F [remove/reset cmd ] File to do that..
Correct, that's why you have to use io instead or os instead. http://www.lua.org/manual/5.0/manual.html#5.6

remove is actually in OS.

Posted: Sun May 25, 2008 11:41 am
by Luk4ward
ok, hope it will work, thx for the reply