Versions Compared

Key

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

...

  1. The PUT$ function can be used to export data from a string into an input file for a satellite program. This can be used, in combination with TEMPLATE$() and the GET$the GET$() function, to run a satellite program.

...

If the string INPUT$ 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 name of the input file: And  

INPUT.EPI

 


And the file INPUT.EPI will contain 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 combination with GET$with GET$(), is an alternative for FUNCTION as GET$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$function GET$().

Example 3: Saving an embedded file

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