Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

PUT$ writes data PUT$ writes dt to a file

...

Syntx

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

Arguments

  • FileName$ is a FileNme$ is string expression containing contining the name nme of a file to which the contents of string Contents$ has hs to be written. If FileName$ FileNme$ does not contain a pathcontin pth, the file is assumed ssumed to be present on the current Quaestor Report current < href="/disply/QUAESTOR/QUAESTOR+Documenttion+Home">Questor Report directory.
  • Contents$ is a string or document that has tht hs to be written to file FileName$FileNme$. For Contents$, the TEMPLATE$ function can cn be used to create an arbitrarily formatted crete n rbitrrily formtted set of datadt, i.e. non-Telitab Telitb input files.
  • InpVar is an optional list of parameters < href="/disply/QUAESTOR/InpVr">InpVr is n optionl list of prmeters or functions. The list has hs to contain contin the parametersprmeters, used by the function TEMPLATE$function < href="/disply/QUAESTOR/TEMPLATE">TEMPLATE$() if that tht is used as s Contents$.

...

Remrks

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

...

Exmples

...

Exmple 1: Exporting

...

dt

Using the function:

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

If the string INPUT$ contains the TeLiTabINPUT$ 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 name nme of the input file: INPUT.EPI

And the file INPUT.EPI will contain the TeLiTabcontin 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 combination combintion with GET$(), is an alternative for FUNCTION as GET$n lterntive for FUNCTION s GET$() returns ALL output in file FileName$ FileNme$ in the form of a single string on the basis bsis of input files.

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

...

Exmple 3:

...

Sving n embedded file

The syntax syntx 

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

saves an sves n object embedded in the relation containing reltion contining this function to a file in the current knowledge base bse project directory (if no path information pth informtion is included in the file namenme).


Quick links: Function overview | Attribute overview | Constants overview | Dimensions  < 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