[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Print to File Question



PureBytes Links

Trading Reference Links

Bob,
Thanks for your response.  I wasn't as precise as I should have been in my
question.
I use the following syntax:
	Print(File("C:\TEMP\test.dat"),date:6:0,", ",close,",  ",GetSymbolName);
This works fine.  It prints a file that is the same data that can be printed to
the print log.
The real question is whether it is possible to "Print to file" and have the
symbol name show up as the file name.
For example, if I am printing a file from a window whose symbol is IBM, is it
possible to print a file named "IBM.DAT" without having to hard code that as
the file name?
This ability would allow one to change the symbols in the window and thus
export the data to a file name that would be unique and thus recognizable
without having to open it to find out what symbol it was. 
Thanks again.
Neal

----------
> From: Bob Fulks <bfulks@xxxxxxxxxxxx>
> 
> I am not sure what you use that doesn't work. I use the following syntax
> all the time:
> 
>     Print(Date:6:0,", ", Value1:4:2, ", ", <etc>, ", ", GetSymbolName);
> 
> The file can then be opened in Excel using a comma delimited format. Works
> fine. I always put the symbol name at the end of the line since it prints
> the variable number of characters corresponding to the symbol.
> 
> Bob Fulks
> 
>