If you wish a variable to hold the contents of the file, you MUST use one 
of two datatypes, VarChar or VarBit, with VarChar the quick choice for 
textual data and VarBit for Binary data.

To set a variable to the contents of a text file you do this:
if your TextFile on disk is named MyTextFile.txt:

Set Var vTextFileContents VARCHAR = ['MyTextFile.txt']

If you wish to write the contents back to disk as a DIFFERENT file, then do 
this:

Write .vTextFileContents to MyNewTextFile.txt

While the contents of the varchar contains the Textual information, it can 
be handled in any manner associated with the VarChar datatype.

On Sunday, December 20, 2020 at 6:54:57 PM UTC-5 [email protected] wrote:

> how do you set a var to a text file
> I have tried       set var var1 text = .myfile.txt
>
> Tom Hart
>

-- 
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rbase-l/1c8cf822-433f-4002-8655-cd9aa248529en%40googlegroups.com.

Reply via email to