Versions Compared

Key

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

PUT$ writes dt PUT$ writes data to a file

...

Syntax

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

Arguments

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

...

Remarks

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

...

Examples

...

Example 1: Exporting

...

data

Using the function:

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

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


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 name of the input file: INPUT 

INPUT.EPI

 


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


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

...

Example 2: Running

...

a satellite program

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

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

...

Example 3:

...

Saving an embedded file

The syntx syntax 

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

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


 

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 Functions overview | Attribute overview | Constants overview | Dimensions overview