PureBytes Links
Trading Reference Links
|
I do it like this which was copied from some other list member.
Inputs: Folder("D:\Rcd\"), Name("Enghigh"), Ext(".txt");
vars:XFILE(" ");
XFILE = Folder + Name + Ext;
FileDelete(XFILE);
Fileappend(Xfile,"Current English HIGH FAIL value @Date: " + NumToStr(Date,0)+" Time: "
+numtostr(Time,0) + newline );
I find this works well because you can change the folder or file name as inputs. Make sure you keep the file names to 8 char and extensions to 3 you know we are using this 16 bit apllication.
HTH
Rich
----- Original Message -----
From: Stephane FILLON <fillons@xxxxxxxxxxx>
To: <Omega-list@xxxxxxxxxx>
Sent: Thursday, March 04, 1999 9:00 AM
Subject: PRINT TO A FILE
|Hi Gurus !
|
|I would like to write the result of my system in a file and I actually use the following statement :
|
|print(file(" C:\TEST "), date, ...) ;
|
|Question :
|Can't I pass a variable to the FILE function.
|
|Each time I wrote the following I get an error at the compil.
|
|Vars : myFile(" C:\TEST ") ;
|
|print(file(myFile), Date....) ;
|
|
|Where is my fault ?
|
|
|