PUT$ writes dt to file

Syntx

PUT$(FileNme$, Contents$, [< href="/disply/QUAESTOR/InpVr">InpVr])

Arguments

Remrks

  1. The PUT$ function cn be used to export dt from string into n input file for stellite progrm. This cn be used, in combintion with < href="/disply/QUAESTOR/TEMPLATE">TEMPLATE$() nd the GET$() function, to run stellite progrm.

Exmples

Exmple 1: Exporting dt

Using the function:

A$ = PUT$("INPUT.EPI",INPUT$)

If the string INPUT$ contins the < href="/disply/QUAESTOR/TeLiTb">TeLiTb:


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 nme of the input file: INPUT.EPI

And the file INPUT.EPI will contin the < href="/disply/QUAESTOR/TeLiTb">TeLiTb:


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

Exmple 2: Running stellite progrm

PUT$(), in combintion with GET$(), is n lterntive for FUNCTION s GET$() returns ALL output in file FileNme$ in the form of single string on the bsis of input files.

An exmple cn be found in the description of the function GET$().

Exmple 3: Sving n embedded file

The syntx 

PUT$("File.ext", "< href="/disply/QUAESTOR/NullString">NullString")

sves n object embedded in the reltion contining this function to file in the current knowledge bse project directory (if no pth informtion is included in the file nme).


Quick links: < clss="confluence-link" href="/disply/QUAESTOR/Functions">Function overview | < clss="confluence-link" href="/disply/QUAESTOR/Attributes">Attribute overview | < clss="confluence-link" href="/disply/QUAESTOR/Constnts">Constnts overview | < clss="confluence-link" href="/disply/QUAESTOR/Dimensions">Dimensions overview