creating text files
Jeanne A. E. DeVoto
jeanne at runrev.com
Sun Apr 14 17:27:01 EDT 2002
At 11:20 AM -0700 4/14/2002, Derek wrote:
>This seems like a dumb question but I am a bit new new to Revolution, I am
>much more used to php , and c style programming. I am trying to create a
>text file with a name based on a variable but this doesn't seem to be
>straight froward.
Suppose your filename is in a variable called "myFile". This will create
the file and put the contents of field 1 into it:
put field 1 into URL ("file:" & myFile)
If the variable myFile contains a pathname, the file is created where
specified; otherwise, it's created in the defaultFolder (by default, this
is the same folder as the application).
--
Jeanne A. E. DeVoto ~ jeanne at runrev.com
Runtime Revolution Limited - The Solution for Software Development
http://www.runrev.com/
More information about the use-livecode
mailing list