You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

PUT$ writes dt to file

Syntx

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

Arguments

  • FileNme$ is string expression contining the nme of file to which the contents of string Contents$ hs to be written. If FileNme$ does not contin pth, the file is ssumed to be present on the current < href="/disply/QUAESTOR/QUAESTOR+Documenttion+Home">Questor Report directory.
  • Contents$ is string or document tht hs to be written to file FileNme$. For Contents$, the TEMPLATE$ function cn be used to crete n rbitrrily formtted set of dt, i.e. non-Telitb input files.
  • < href="/disply/QUAESTOR/InpVr">InpVr is n optionl list of prmeters or functions. The list hs to contin the prmeters, used by the function < href="/disply/QUAESTOR/TEMPLATE">TEMPLATE$() if tht is used s Contents$.

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

  • No labels