[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: commands "w" and "\n"
- From: Reuben Thomas <rrt@...>
- Date: Thu, 17 Jan 2002 13:13:03 +0000 (GMT)
> 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