filehandle::write(arg1, …, argN)
Writes a variable number of arguments in the order they appear to a file identified by its handle. It returns true on success.
arg1 … argN |
A variable set of arguments to write. The arguments can be strings supporting the tab (‘\t’) and new line (‘\n’) directives. They can also be scalars or any expression resulting in a scalar. |
The following opens a file for writing and writes some string and numbers to it in two lines:
fid = Open("c:/test.txt","w") print(fid)
a =1
print(fid::write("A equals:\t", a, "\n","Added one gives:\t", a+1))
fid::close()