lua-users home
lua-l archive

Re: commands "w" and "\n"

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


> I have found the following LUA-script, but I do not understand the
> commands "w" and "\n". I use this script to get the B-values of a FEMM
> 3.1-plot. Can anyone tell me what these commands are? Thank you very
> much.
These are not commands, just strings.
> handle=openfile("values_2.txt","w")
Here, the "w" causes the file to be opened in "write" mode.
> write(handle,"\n")
Here, "\n" is the string to be written to the file. \n is the way of
writing a newline character.
-- 
http://sc3d.org/rrt/ | Careful Cyclists Approaching From Right

AltStyle によって変換されたページ (->オリジナル) /