PUT$ writes data to a file
PUT$(FileName$, Contents$, [InpVar])
Arguments
Using the function:
A$ = UT$("INPUT.EPI",INPUT$)
If the string INPUT$ contains the TeLiTab:
0
2 "XC" "YC"
"1" 1 1
"2" 2 4
"3" 3 9
"4" 4 16
"5" 5 25
"6" 6 36
"7" 7 49
"8" 8 64
"9" 9 81
"10" 10 100
The string A$ will return the name of the input file:
INPUT.EPI
And the file INPUT.EPI will contain the TeLiTab:
0
2 "XC" "YC"
"1" 1 1
"2" 2 4
"3" 3 9
"4" 4 16
"5" 5 25
"6" 6 36
"7" 7 49
"8" 8 64
"9" 9 81
"10" 10 100
PUT$(), in combination with GET$(), is an alternative for FUNCTION as GET$() returns ALL output in file FileName$ in the form of a single string on the basis of input files.
An example can be found in the description of the function GET$().
The syntax
PUT$("File.ext", "NullString")
saves an object embedded in the relation containing this function to a file in the current knowledge base project directory (if no path information is included in the file name).
Quick links: Functions overview | Attribute overview | Constants overview | Dimensions overview