I did follow:
===============
on writeFile
    global YUORVAR,myfile
    YUORVAR=<anything>
    if objectP(myFile) then
    set myFile=0
    end if
    set myFile=new(xtra "fileIO")
    -- Get WINDOWS directory
    roof = getOSDirectory()

    -- Create File EC101.txt on WINDOWS directory
    createFile(myFile, root&"\EC101.txt")
    -- Open File
     openFile(myFile, root&"\EC101.txt", 0)
    -- Write File
    writeString(myFile, YUORVAR)
    -- Close File
    closeFile(myFile)

end writeFile
=================

   good luck

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Fabio
Sent: Tuesday, March 06, 2001 10:21 PM
To: [EMAIL PROTECTED]
Subject: <lingo-l> creating a txt using variables


Hi guys and gals.

Sorry for bothering you again with stupid questions. But that's the
problem: I have to create a txt file that will be saved on the HD with some
fields that are variables and then will be sent through e-mail to a
predefined e-mail address. The file should look like this example:
--

"Hi <name>,

This is a report with your scoring in our test.
You scored <score> points.

Thanks for using our test engine".

--

I have Buddy API installed, if that can help (I didn't look upon all its
functions yet). And I also expect to buy Directemail Xtra. I think
Directemail can handle the sending e-mail problem. But how can I export the
variables to a predefined text?!

Well, thanks for your time.
Fabio


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to